Log in and log out
To sign in, use the loginWithEmailAndPassword
method. If a login error occurs (such as invalid login credentials), it will be thrown as an exception.
try {
await adamite()
.auth()
.loginWithEmailAndPassword("email@email.com", "password");
} catch (err) {
console.error(err);
}
To sign out, you can use the logout
method.
await adamite().auth().logout();
Last updated
Was this helpful?