authenticate
abstract suspend fun authenticate(context: Context, detailedAuthenticator: Authenticator?, authParams: LinkedHashMap<String, String>)
Authenticate the user with the selected 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
detailedAuthenticator
The detailed authenticator object of the selected authenticator
authParams
The authentication parameters of the selected authenticator as a LinkedHashMap