UNPKG

payload-authjs

Version:
10 lines (9 loc) 485 B
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;