Sign in a user
Log in an existing user with an email and password or phone and password.
- Requires either an email and password or a phone number and password.
Parameters
credentials
REQUIRED
SignInWithPasswordCredentialsemail
Optional
stringOne of `email` or `phone` must be provided.
phone
Optional
stringOne of `email` or `phone` must be provided.
password
REQUIRED
stringoptions
Optional
objectcaptchaToken
Optional
string
const { data, error } = await supabase.auth.signInWithPassword({
email: 'example@email.com',
password: 'example-password',
})