mirror of
https://github.com/Floriansylvain/SnippetsManager.git
synced 2026-10-19 08:43:51 +02:00
Register/Login implementation
This commit is contained in:
1 parent
55f42008f6
commit
84d95d6f12
6 files changed
+765
-19
No files matched your search
@@ -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"]
|
||||
}
|
||||
Reference in new issue
Block a user