diff --git a/src/managers/totp.ts b/src/managers/totp.ts index ca6f0bd4..48b6c852 100644 --- a/src/managers/totp.ts +++ b/src/managers/totp.ts @@ -57,7 +57,7 @@ export const confirmAuthenticatorAppRegistration = async ( throw new UserNotFoundError(); } - if (!temporaryTotpKey || !validateToken(temporaryTotpKey, totpToken)) { + if (!temporaryTotpKey || !validateToken(temporaryTotpKey, totpToken, 2)) { throw new InvalidTotpTokenError(); }