All projectsfeature

Magic-link Auth Module

Drop-in passwordless auth with rate limiting, session rotation and branded email templates.

Next.jsAuth.jsResendDrizzle#auth#security
RepositoryUpdated Aug 1, 2026

What it does

Passwordless sign-in through a one-time email link, with per-IP rate limiting and session rotation on privilege change.

How to redeploy

  1. Copy the module with the scaffold command.
  2. Set RESEND_API_KEY and AUTH_SECRET.
  3. Run the migration:
npx drizzle-kit push
import { authConfig } from "@/features/auth/config";
export const { handlers, auth, signIn } = NextAuth(authConfig);