authenticateWithPasskey
abstract suspend fun authenticateWithPasskey(context: Context, authenticatorId: String, allowCredentials: List<String>? = emptyList(), timeout: Long? = null, userVerification: String? = null)
Authenticate the user with the Passkey authenticator.
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
allowCredentials
The list of allowed credentials. Default is empty array.
timeout
Timeout for the authentication. Default is 300000.
userVerification
User verification method. Default is "required"