FeaturesMagic Links
ShipFast 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.local
1NEXTAUTH_URL=http://localhost:3000 2NEXTAUTH_SECRET=
NEXTAUTH_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.