payload-authjs
Version:
A Payload CMS 3 plugin for Auth.js 5
10 lines (9 loc) • 524 B
TypeScript
import { type CollectionConfig, type CollectionRefreshHook } from "payload";
import type { AuthjsPluginConfig } from "../../plugin";
/**
* 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, pluginOptions: AuthjsPluginConfig) => CollectionRefreshHook;