Class MfaSetupInitiation
Pure setup data returned by .
Captures everything the orchestrator needs to (a) hand a setup_token back to the
client and (b) reconstruct + apply the secret on confirm — without mutating
first. This is the B5 fix for the "two parallel setups
race-overwrite the secret" bug.
public sealed record MfaSetupInitiation : IEquatable<MfaSetupInitiation>
Inheritance
Implements
Properties
ClientResult
Client-facing setup data (QR URI, masked destination, errors, etc.).
public required MfaSetupResult ClientResult { get; init; }
Destination
Destination such as phone or email. Null for TOTP.
public string? Destination { get; init; }
EncryptedSecret
Method-private secret to be persisted on confirm. For TOTP this is the encrypted
public string? EncryptedSecret { get; init; }
MethodId
public required string MethodId { get; init; }