WeeShip

Features

Magic Links

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

Setup

  1. If you haven't done it yet, add this to your .env.local:.env.local1NEXTAUTH_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.
  2. If you haven't set up sending/receiving emails, do it first
  3. In config.js file, add an from field to resend.fromNoReply (usually noreply@mail.yourdomain.com)
  4. [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.