Add controller for authenticating with admin name and password

+ Add function to create a JWT with the required payload
This commit is contained in:
Stephan
2021-11-10 08:19:17 +01:00
parent eff8dd0860
commit 3d961ab53d
2 changed files with 77 additions and 0 deletions
+3
View File
@@ -20,10 +20,13 @@
"homepage": "https://github.com/detleph/server#readme",
"dependencies": {
"@prisma/client": "^3.3.0",
"@types/jsonwebtoken": "^8.5.5",
"@types/node": "^16.10.3",
"@types/nodemailer": "^6.4.4",
"argon2": "^0.28.2",
"dotenv": "^10.0.0",
"express": "^4.17.1",
"jsonwebtoken": "^8.5.1",
"nodemailer": "^6.7.0"
},
"devDependencies": {