Method SetupAsync(long, string, string, string?, CancellationToken)

Assembly: redb.Identity.Core.dll

Initiates MFA setup for a method. Returns setup data (QR URI, masked destination, etc.)
AND an opaque, encrypted setup token that the client must present back to
. Does NOT mutate or save anything
to the database — the candidate secret/destination lives only in the setup token until
confirm. This eliminates the "two parallel setups race-overwrite the secret" bug (B5).

E-mail: the one-time code goes to the candidate address now, and the result carries mfa_state, which
confirm takes together with the code and the setup token. The only database write is the OTP rate-limit
counter on the user's MFA record (created disabled if the user has none yet) and the server-side OTP.
SMS is not changed: its setup sends nothing.

public Task<MfaSetupResult> SetupAsync(long userId, string methodId, string username, string? destination = null, CancellationToken ct = default)