Sign in a user
Log in an existing user, or login via a third-party provider.
- A user can sign up via email, phone number.
- If you provide
password, the user will be sent a magic link.
- The magic link's destination URL is determined by the SITE_URL config variable. To change this, you can go to Authentication -> Settings on supabase.com/dashboard
- Similarly, if you provide
password, the user will be sent a one time password.
- If you are looking to sign users in with OAuth in Flutter apps, go to
final res = await supabase.auth.signIn(email: 'email@example.com', password: 'example-password'); final user = res.data?.user; final error = res.error;