.env file.
BETTER_AUTH_URL in your .env file to match your domain.
Replace http://localhost:3000 with your domain if you are deploying to production.
Google OAuth
To enable Google OAuth, you need to create a new project in the Google Developer Console.- Go to the Google Developer Console.
- Create a new project.
-
Go to the
OAuth consent screenand fill in the required fields. -
Go to the
Credentialstab and create a new OAuth client ID. -
Add the client ID and client secret to your
.envfile.
Magic Link
To enable Magic Link, you need a email provider. We are using Resend in this Starter-Kit.- Go to Resend and create an account.
-
Go to the
Settingstab and copy the API key. -
Add the API key to your
.envfile.
config/config.ts file and set also the additionalAuthMethod to magic-link.
You get the infos from the Resend SMTP page.
You can also change this to your own SMTP provider.