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
- Copy the module with the scaffold command.
- Set
RESEND_API_KEYandAUTH_SECRET. - Run the migration:
npx drizzle-kit push
import { authConfig } from "@/features/auth/config";
export const { handlers, auth, signIn } = NextAuth(authConfig);