Skip to content
The Auth.js project is now part of Better Auth.
API reference@auth/pg-adapter

@auth/pg-adapter

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

Installation

npm install next-auth @auth/pg-adapter pg

default()

function default(client): Adapter

Parameters

ParameterType
clientPool

Returns

Adapter


mapExpiresAt()

function mapExpiresAt(account): any

Parameters

ParameterType
accountany

Returns

any

Auth.js © Better Auth Inc. - 2025