@rakered/nextjs-auth-ui

1.1.1 • Public • Published

@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}

/@rakered/nextjs-auth-ui/

    Package Sidebar

    Install

    npm i @rakered/nextjs-auth-ui

    Weekly Downloads

    0

    Version

    1.1.1

    License

    AGPL-3.0 OR COMMERCIAL

    Unpacked Size

    100 kB

    Total Files

    78

    Last publish

    Collaborators

    • smeijer