authenticateWithSMSOtp

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

Authenticate the user with the SMS OTP authenticator, only if the SMS OTP not added as a first factor authenticator. If the SMS 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