Thrown when MFA API methods are called but no context exists in session for the provided encrypted mfa_token.
This typically occurs when:
try { await mfa.verify({ mfaToken, otp: code });} catch (error) { if (error?.code === "mfa_token_expired") { // Restart MFA flow - context was lost redirect("/auth/login?prompt=mfa"); }} Copy
try { await mfa.verify({ mfaToken, otp: code });} catch (error) { if (error?.code === "mfa_token_expired") { // Restart MFA flow - context was lost redirect("/auth/login?prompt=mfa"); }}
Readonly
Thrown when MFA API methods are called but no context exists in session for the provided encrypted mfa_token.
This typically occurs when:
Example