Class MfaState
Temporary state between password verification and MFA code entry.
Encrypted via with TTL enforcement.
public sealed class MfaState
Inheritance
Properties
IssuedAt
When this state was issued. Used for TTL enforcement.
public DateTimeOffset? IssuedAt { get; set; }
OtpDestination
Masked destination for UI display (e.g. "+71234", "u"). Safe to carry client-side.
public string? OtpDestination { get; set; }
OtpExpiresAt
B3: absolute OTP expiry copied from for cheap pre-check.
public DateTimeOffset? OtpExpiresAt { get; set; }
OtpMethod
Method that issued the OTP code: "sms" or "email". Null for TOTP states.
public string? OtpMethod { get; set; }
SetupJti
The jti of the setup token this OTP was sent for, when it was sent to a candidate destination at
public Guid? SetupJti { get; set; }
WebAuthnChallenge
MFA-3: 32 random bytes issued at webauthn/{register|assert}/begin. The browser
public byte[]? WebAuthnChallenge { get; set; }
WebAuthnFlow
MFA-3: which WebAuthn ceremony this state belongs to: register (attestation,
public string? WebAuthnFlow { get; set; }
WebAuthnOptionsJson
MFA-3: serialized AssertionOptions JSON (or CredentialCreateOptions) issued
public string? WebAuthnOptionsJson { get; set; }