Skip to content

Commit

Permalink
feat: totp enrollment is valid for 2 period like totp signin
Browse files Browse the repository at this point in the history
  • Loading branch information
rdubigny committed Dec 20, 2024
1 parent 27e5927 commit 84f8592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/managers/totp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 84f8592

Please sign in to comment.