MfaRequired

The authentication flow requires an additional factor to complete.

This state indicates that the user must perform a Multi-Factor Authentication (MFA) step to proceed.

Parameters

context

The DirectAuthenticationContext associated with this state.

mfaContext

The context required to continue the MFA flow.

Functions

Link copied to clipboard
suspend fun challenge(secondaryFactor: SecondaryFactor, challengeTypesSupported: List<ChallengeGrantType> = listOf(WebAuthnMfa, OobMfa, OtpMfa)): DirectAuthenticationState

Initiates an interactive multi-factor authentication (MFA) challenge.

Link copied to clipboard
suspend fun resume(secondaryFactor: SecondaryFactor, challengeTypesSupported: List<ChallengeGrantType> = listOf(WebAuthnMfa, OobMfa, OtpMfa)): DirectAuthenticationState

Continues the multi-factor authentication (MFA) flow using the specified secondary factor.