Skip to main content

Interface: RecoveryCodeEntry

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

A single generated MFA recovery/backup code, as persisted on a RecoveryCodesSecret. The plaintext code is never persisted - only its argon2 hash - so it can only ever be shown to the user once, at generation time (see BaseSecretRoute.validateRecoveryCodesCreate()).

Properties​

hash​

hash: string

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

The argon2 hash of this code's plaintext value.


usedAt?​

optional usedAt?: string

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

ISO-8601 timestamp at which this code was consumed, if it has been. Unused codes omit this field.