payload-authjs
Version:
A Payload CMS 3 plugin for Auth.js 5
10 lines (9 loc) • 485 B
TypeScript
import type { CollectionConfig, CollectionMeHook } from "payload";
import type { AuthjsPluginConfig } from "../../plugin";
/**
* Add me hook to override the me endpoint to include 'exp' and virtual fields
*
* @see https://payloadcms.com/docs/hooks/collections#me
* @see https://github.com/payloadcms/payload/blob/main/packages/payload/src/auth/operations/me.ts
*/
export declare const meHook: (collection: CollectionConfig, pluginOptions: AuthjsPluginConfig) => CollectionMeHook;