UNPKG

payload-authjs

Version:

A Payload CMS 3 plugin for Auth.js 5

9 lines (8 loc) 433 B
import { type CollectionConfig, type CollectionRefreshHook } from "payload"; /** * Add refresh hook to override the refresh endpoint to refresh the session with authjs * * @see https://payloadcms.com/docs/hooks/collections#refresh * @see https://github.com/payloadcms/payload/blob/main/packages/payload/src/auth/operations/refresh.ts */ export declare const refreshHook: (collection: CollectionConfig) => CollectionRefreshHook;