Skip to content
Migrating from NextAuth.js v4? Read our migration guide.
API referencePostgresjs Adapter

@auth/postgresjs-adapter

An official Postgres.js adapter for Auth.js / NextAuth.js.

Installation

npm install next-auth @auth/postgresjs-adapter postgres

default()

function default(sql): Adapter

Parameters

ParameterType
sqlSql

Returns

Adapter

Auth.js © Balázs Orbán and Team - 2025