authenticateWithEmailOtp

abstract suspend fun authenticateWithEmailOtp(context: Context, authenticatorId: String, otpCode: String)

Authenticate the user with the Email OTP authenticator, only if the Email OTP not added as a first factor authenticator. If the Email OTP is added as a first factor authenticator, use the authenticate method to authenticate the user.

emit: AuthenticationState.Loading - The application is in the process of loading the authentication state

emit: AuthenticationState.Authenticated - The user is authenticated to access the application

emit: AuthenticationState.Unauthenticated - The user is not authenticated to access the application

emit: AuthenticationState.Error - An error occurred during the authentication process

Parameters

context

The context of the application

authenticatorId

The authenticator id of the selected authenticator

otpCode

The OTP code of the user