@rakered/nextjs-auth-ui

ui for using @rakered/accounts with nextjs.

Usage no npm install needed!

<script type="module">
  import rakeredNextjsAuthUi from 'https://cdn.skypack.dev/@rakered/nextjs-auth-ui';
</script>

README

@rakered/nextjs-auth-ui

Next.js SDK for using user authentication persisted in MongoDB

social image

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}