@rakered/nextjs-auth-ui
Next.js SDK for using user authentication persisted in MongoDB
Usage
Create a Dynamic Page Route handler at /pages/auth/[...slug].js
import '@rakered/nextjs-auth-ui/style.css';
import { handleAuth } from '@rakered/nextjs-auth-ui';
export default handleAuth();
This will create the following urls:
/auth/signup
/auth/login
/auth/logout
/auth/forgot-password
/auth/enroll-account/{token}
/auth/reset-password/{token}
/auth/verify-email/{token}