authenticateWithUsernameAndPassword

abstract suspend fun authenticateWithUsernameAndPassword(context: Context, authenticatorId: String, username: String, password: String)

Authenticate the user with the username and password.

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

username

The username of the user

password

The password of the user