Launch Express uses Better-Auth for authentication. The configuration is done in the config/auth.js
file.
.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.
OAuth consent screen
and fill in the required fields.
Credentials
tab and create a new OAuth client ID.
.env
file.
Settings
tab and copy the API key.
.env
file.
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.