docs
Features
magic-links
Next Auth+mangodb

Nextstart uses NextAuth to authenticate users. You can configure it in the /app/api/auth/[...nextauth]/route.ts file.

Setup

Step 1

If you haven't done it yet, add this to your .env.local

.env.local
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=ybcbjukkkmcrte22c //(you can put anything here not less than 10 characters)

Step 2

If you haven't set up sending/receiving emails,do it first

Step 3

In config.ts file, add an from field to mailgun.fromNoReply (usually noreply@mail.yourdomain.com)