Skip to main content

Interface: RecoveryCodesSecret

Defined in: src/auth/types.ts:209

The data shape of a recovery-codes type Secret: a fixed batch of single-use backup codes generated when the secret is created, for authenticating when a user has lost access to their other secondary (MFA) methods. See MFAStrategy.verifyRecoveryCode() for how a submitted code is checked against this list, and BaseAuthMFARoute.consumeRecoveryCode() for how a matched entry gets marked used.

Properties

codes

codes: RecoveryCodeEntry[]

Defined in: src/auth/types.ts:210