Skip to content
Auth.js 项目现在加入了 Better Auth
API 参考手册@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