Doobie.js

NuAuth
WIP

Simple Auth for your Next.js 15 App

Type-safe
Easy
Flexible
npx nuauth create
Package coming soon!

Set Up Auth in Minutes

All in one configuration file. No database needed.

typescript

Config

/src/lib/auth.ts

export const auth = NextJWTAuth({
  providers: {
    google: Google({
      client_id: process.env.GOOGLE_ID,
      client_secret: process.env.GOOGLE_SECRET,
    })
  },
  apiRoute: '/api/auth',
})

Social Logins

Built-in support for Google, Facebook, and more

+

Server Actions

Directly call methods via server actions. No need to create API routes.

+

Username & Password

Create your own custom provider for username and password logins, and directly integrate with your database.

+

Full type inference

Type-safe session and config objects, even modified, will infer changes accordingly.

+

Full Control

Customize the entire auth flow with ease.

+

Secure

CSRF protection, signed cookies, prefixed keys, and more.

+