Authentication
Before you start
Once you setup your Supabase project and you DB schema, you can start setting up authentication. To get started with authentication, you need to ensure the following:
- Correct authentication providers are activated in your Supabase project.
- Set up the default Redirect URLs in your Supabase dashboard.
- Learn how to manage the email templates in Supabase.
Authentication Providers
The following authentication methods are implemented in pro plan by the Supabase Auth service:
Passwordless email logins
Email logins using Magic Links or One-Time Passwords (OTPs)
Supabase Auth offers a variety of passwordless login options. These methods enable users to sign in without a password, either by clicking a confirmation link or entering a verification code.
Passwordless login can:
- Enhance user experience by eliminating the need for users to create and remember a password.
- Enhance security by minimizing the possibility of password-related security incidents.
- Lessen support load related to password resets and other password-related procedures.
Magic links are a secure way to authenticate users without requiring them to remember a password. When a user signs in with their email address, Supabase sends them an email with a link that they can click to sign in. This link is valid for a short period of time and can only be used once.
Supabase Auth offers two passwordless login methods that use the user’s email address:
Email authentication methods, including Magic Links, are enabled by default.
To learn more about Passwordless email logins, Supabase has a detailed guide available here
Google OAuth
Supabase has a detailed guide on how to setup Google OAuth with Supabase, including how to setup a project in Google Cloud Platform.
GitHub
To enable GitHub authentication, you need to create a new OAuth application in your GitHub account. You can follow the steps in the Supabase documentation to set up GitHub authentication.
Adding more authentication providers
For information on implementing additional authentication methods, you can find more info Supabase documentation.