Skip to content

Commit 736e2d4

Browse files
committed
fixing login with 2fa
1 parent 6fd2a27 commit 736e2d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/2WayAuthentication.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function generateOtp(length = 6): string {
88
}
99
return otp
1010
}
11-
const SECRET: string = process.env.SECRET ?? 'test_secret'
11+
const SECRET = (process.env.SECRET as string) || 'mysq_unique_secret'
1212

1313
export function encodeOtpToToken(otp: string, email: string): string {
1414
const payload = { otp, email }

0 commit comments

Comments
 (0)