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 the user could not be logged in.