Skip to content
Migrating from NextAuth.js v4? Read our migration guide.
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()

default(client): Adapter

Parameters

ParameterType
clientPool

Returns

Adapter


mapExpiresAt()

mapExpiresAt(account): any

Parameters

ParameterType
accountany

Returns

any

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