We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edb6c68 commit 14e7ae2Copy full SHA for 14e7ae2
src/error-keys.ts
@@ -9,4 +9,7 @@ export const enum AuthErrorKeys {
9
InvalidCredentials = 'Invalid Credentials',
10
UnknownError = 'Unknown Error',
11
WrongPassword = 'Incorrect Password',
12
+ KeyInvalid = 'Key Invalid',
13
+ OtpInvalid = 'Otp Invalid',
14
+ OtpExpired = 'Otp Token Incorrect or Expired',
15
}
src/strategies/passport/passport-otp/otp-auth.ts
@@ -37,7 +37,7 @@ export namespace Otp {
37
const key = req.body.key || options?.key;
38
const otp = req.body.otp || options?.otp;
39
40
- if (!key || !otp) {
+ if (!key) {
41
this.fail();
42
return;
43
0 commit comments