Magic Link Login
Nextfast comes with pre configured magic link login can be found in auth.config.ts
.
The boilerplate uses Resend.com
as an email provider but you can use your preferend email provider kindly refer auth.js email configuration Email Providers
Make sure you have setup the .env
correctly with
# http://localhost:3000 for local development
NEXT_PUBLIC_APP_URL="http://localhost:3000"
# run `npx auth secret` or go to https://generate-secret.now.sh/32
AUTH_SECRET=y+u8yfKbffzeOOuobao1/B0FgsblDOwpsL2y0XTzt7x=
# RESEND API KEY - https://resend.com/docs/api-reference/api-keys/create-api-key
AUTH_RESEND_KEY=<YOUR_RESEND_KEY>