Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix: made totp verify lax
Sheen Capadnganf9ec74cb2eac
diff --git a/backend/src/services/totp/totp-service.ts b/backend/src/services/totp/totp-service.tsindex 193a27d90d..461d43ac12 100644--- a/backend/src/services/totp/totp-service.ts+++ b/backend/src/services/totp/totp-service.ts@@ -22,6 +22,8 @@ type TTotpServiceFactoryDep = {kmsService: TKmsServiceFactory;};+authenticator.options = { window: 1 };+export type TTotpServiceFactory = ReturnType<typeof totpServiceFactory>;const MAX_RECOVERY_CODE_LIMIT = 10;