Javascript Reference v2.0

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
    SignInWithPasswordCredentials

const { data, error } = await supabase.auth.signInWithPassword({
  email: '[email protected]',
  password: 'example-password',
})