Lightlines
By giuseppe-trisciuoglio

better-auth

giuseppe-trisciuoglio3.4k installs

Add Better Auth login to NestJS and Next.js.

What it does

Guides implementation of authentication in a NestJS backend and Next.js frontend using Better Auth and a PostgreSQL database.

When to use it

Use when setting up authentication, social login, protected routes, multi-factor authentication, or organization features in a NestJS and Next.js application.

How to use it

Give it a NestJS and Next.js project; it adds database configuration, authentication integration, frontend pages, and optional authentication plugins.

What you provide

  • An existing project

Uses

Latest review

What you need · 11

Requires Node.js 18 or later for Next.js App Router support.

Needs a PostgreSQL database reachable through DATABASE_URL for the database connection and migrations.

Uses psql to verify that the authentication tables were created.


Access · 1

This skill

PostgreSQL

Write

Creates PostgreSQL authentication tables