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 8392ff9Copy full SHA for 8392ff9
src/resolvers/2fa.resolvers.ts
@@ -17,7 +17,7 @@ interface Disable2FAInput {
17
email: string
18
}
19
20
-const SECRET: string = process.env.SECRET ?? 'test_secret'
+const SECRET = (process.env.SECRET as string) || 'mysq_unique_secret'
21
const resolvers = {
22
Mutation: {
23
enableTwoFactorAuth: async (_: any, { email }: Enable2FAInput) => {
src/utils/2WayAuthentication.ts
@@ -8,7 +8,7 @@ export function generateOtp(length = 6): string {
8
9
return otp
10
11
12
13
export function encodeOtpToToken(otp: string, email: string): string {
14
const payload = { otp, email }
0 commit comments