signInWith
abstract suspend fun <C, R, Provider : AuthProvider<C, R>> signInWith(provider: Provider, redirectUrl: String? = defaultRedirectUrl(), config: C.() -> Unit? = null)(source)
Signs in the user with the specified provider
Example:
val result = auth.signInWith(Email) {
email = "example@email.com"
password = "password"
}
Content copied to clipboard
or
auth.signInWith(Google) // Opens the browser to login with google
Content copied to clipboard
Parameters
redirectUrl
The redirect url to use. If you don't specify this, the platform specific will be used, like deeplinks on android.
config
The configuration to use for the sign-in.
Throws
or one of its subclasses if receiving an error response. If the error response contains a error code, an AuthRestException will be thrown which can be used to easier identify the problem.
HttpRequestTimeoutException
if the request timed out
on network related issues