Dart Reference v1.0

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: '[email protected]',
  password: 'example-password',
);
final Session? session = res.session;
final User? user = res.user;