FeaturesMagic Links
CodeLaunch uses NextAuth to authenticate users. You can configure it in the /app/api/auth/[...nextauth]/route.js
file.
Setup
- If you haven't done it yet, add this to your
.env.local
:.env.localNEXTAUTH_SECRET
is a random chain of characters for JWT encryption. Put anything in there with a least 15 characters. - If you haven't set up sending/receiving emails, do it first
- In config.js file, add an from field to
resend.fromNoReply
(usually noreply@mail.yourdomain.com) - [Skip if using Resend] Add a sending limit in Mailgun to prevent abuse
The mongoDB adapter saves new users in the database when they click the login link they receive by email. You have to configure the database first.