Register/Login implementation

This commit is contained in:
Florian Sylvain
2023-01-26 20:57:12 +01:00
parent 55f42008f6
commit 84d95d6f12
6 changed files with 765 additions and 19 deletions
+7
View File
@@ -0,0 +1,7 @@
export function getJwtSecret(): string {
if (process.env["JWT_SECRET"] == undefined) {
console.error("WARNING! JWT secret is not set.")
process.exit()
}
return process.env["JWT_SECRET"]
}