Method ConfirmSetupAsync(long, string, string, string, MfaState?, CancellationToken)

Assembly: redb.Identity.Core.dll

Confirms MFA setup by verifying the first code against the candidate secret/destination
carried inside setupToken. The setup token is the opaque string returned
by . Returns recovery codes (plain text, shown once) on success or
null if the token is invalid/expired or the code does not match.

public Task<string[]?> ConfirmSetupAsync(long userId, string methodId, string code, string setupToken, MfaState? state = null, CancellationToken ct = default)