Class TwoFactorRecoveryCodeEntity
Stores hashed two-factor recovery codes for an account. Recovery codes are one-time-use fallbacks when TOTP is unavailable. The server hashes codes before storage; this layer stores opaque hashes only.
public class TwoFactorRecoveryCodeEntity
- Inheritance
-
TwoFactorRecoveryCodeEntity
- Inherited Members
Properties
Account
Navigation property to the account entity.
public AccountEntity Account { get; set; }
Property Value
AccountName
Account the recovery code belongs to.
public string AccountName { get; set; }
Property Value
CodeHash
Hashed recovery code value.
public string CodeHash { get; set; }
Property Value
ID
Primary key.
public long ID { get; set; }
Property Value
TimeCreated
Timestamp when the code was created.
public DateTime TimeCreated { get; set; }
Property Value
UsedAt
Timestamp when the code was used (null if unused).
public DateTime? UsedAt { get; set; }