Interface: RecoveryCodeEntry
Defined in: src/auth/types.ts:196
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: src/auth/types.ts:198
The argon2 hash of this code's plaintext value.
usedAt?
optionalusedAt?:string
Defined in: src/auth/types.ts:200
ISO-8601 timestamp at which this code was consumed, if it has been. Unused codes omit this field.