Auth0.Android Database Authentication
Log in with a database connection
To log in with a database connection, call login with the user's email, password, and the connection you want to authenticate with. The response is a Credentials object.
authentication
.login("username@domain.com", "a secret password", "my-database-connection")
.start(object: Callback<Credentials, AuthenticationException> {
override fun onSuccess(payload: Credentials) {
// Logged in!
}
override fun onFailure(error: AuthenticationException) {
// Error!
}
})Was this helpful?
/
The default scope is openid profile email.
Sign up with a database connection
To sign up with a database connection, call the signUp method, passing the user's email, password, and connection name.
authentication
.signUp("username@domain.com", "a secret password", "my-database-connection")
.start(object: Callback<Credentials, AuthenticationException> {
override fun onSuccess(result: Credentials) {
// Signed Up & Logged in!
}
override fun onFailure(error: AuthenticationException) {
// Error!
}
});Was this helpful?
/