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

Assembly: redb.Identity.Core.dll

Generates a fresh OTP code for SMS/Email, dispatches it via the matching delivery channel,
updates rate-limit counters, and returns a new encrypted MFA state with the code embedded.

public Task<MfaChallengeResult> CreateChallengeAsync(long userId, string username, string methodId, string? returnUrl, CancellationToken ct = default)