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.
Parameters
email
Optional
StringUser's email address to be used for email authentication.
phone
Optional
StringUser's phone number to be used for phone authentication.
password
REQUIRED
StringPassword to be used for authentication.
captchaToken
Optional
StringThe captcha token to be used for captcha verification.
final AuthResponse res = await supabase.auth.signInWithPassword(
email: '[email protected]',
password: 'example-password',
);
final Session? session = res.session;
final User? user = res.user;