login

abstract suspend fun login(credentials: Credentials): User

Log in as a user with the given credentials associated with an authentication provider.

Return

the logged in User.

Parameters

credentials

the credentials representing the type of login.

Throws

if a problem occurred when logging in. See the exception message for further details.

for other failures that can happen when communicating with App Services. See AppException for details.