Prepare for the PgBouncer and IPv4 deprecations on 26th January 2024

Home

Sign in a user

Log in an existing user using email or phone number with password.

  • Requires either an email and password or a phone number and password.

final AuthResponse res = await supabase.auth.signInWithPassword(
  email: 'example@email.com',
  password: 'example-password',
);
final Session? session = res.session;
final User? user = res.user;