Agentcask
← Back to library
Dev4.9 (412)·3,821 downloads

Auth Ready

Drop-in authentication with email/password, OAuth, magic link, and MFA. Works with any Next.js or Node app.

Overview

A production-grade authentication module that handles signup, login, password reset, OAuth (Google, GitHub, Apple), magic link, and TOTP MFA. Ships with a pre-built UI that matches your Tailwind theme, session management, and role-based access control. Zero vendor lock-in — all data stays in your own database.

What's included

Email, OAuth, magic link, and MFA flows
Pre-built Tailwind UI components
Role-based access control
Session management and refresh tokens
Commercial-use license
Priority Slack support

Quickstart

  1. 01

    Install the package

    npm install @saasential/auth — a single package with zero peer dependencies beyond Next.js.

  2. 02

    Set environment variables

    Add your DB connection string and OAuth app credentials to .env.local.

  3. 03

    Run the setup script

    npx saasential-auth setup — creates the required database tables and seeds roles.

  4. 04

    Import the components

    Drop <AuthModal />, <UserMenu />, and the auth middleware into your layout. Done.

Reviews (412)

No written reviews yet.

Sign in to leave a review.

Best value

Included with Starter

One subscription. Every tool. Plus priority support.

$29 / month
Start Starter
  • Every tool in the library
  • Priority support included
  • Cancel any time

Or pay once

$49 one-time
Add to cart
  • Lifetime access to this version
  • 30-day money-back guarantee

More in Dev