mirror of
https://github.com/Floriansylvain/SnippetsManager.git
synced 2026-08-19 11:43:15 +02:00
Register/Login implementation
This commit is contained in:
@@ -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