We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fd2a27 commit 736e2d4Copy full SHA for 736e2d4
src/utils/2WayAuthentication.ts
@@ -8,7 +8,7 @@ export function generateOtp(length = 6): string {
8
}
9
return otp
10
11
-const SECRET: string = process.env.SECRET ?? 'test_secret'
+const SECRET = (process.env.SECRET as string) || 'mysq_unique_secret'
12
13
export function encodeOtpToToken(otp: string, email: string): string {
14
const payload = { otp, email }
0 commit comments