Setting Up Email and Password Login / Signup
FYI: If a user signs up or logs in via email and password or a magic link, he’ll be redirected
to the /auth/(handlers)/confirm route which will take care of the auth related logic.
Setting up Google Sign-In
FYI: If a user signs up or logs in via Google, he’ll be redirected to the
/auth/(handlers)/callback route which will take care of the auth related logic.
1
Set up Google Consent Screen
2
Set Up Google Oauth Client
How To Use Google Sign-In In Production
In the Supabase dashboard, go to the authentication tab and click on URL Configuration.- Let’s now set the production domain for our application under the Site URL field. In our case it would be https://2mrw.dev.
- Update the Redirect URLs field to include our Production domain as well as the localhost:3000 domain (for local development):