UNPKG

payload-authjs

Version:
11 lines (10 loc) 550 B
import type { Endpoint } from "payload"; import type { AuthjsPluginConfig } from "../../plugin"; /** * Override the default refresh endpoint to refresh the authjs session cookie * * @see https://payloadcms.com/docs/authentication/operations#refresh * @see https://github.com/payloadcms/payload/blob/main/packages/payload/src/auth/endpoints/refresh.ts * @see https://github.com/payloadcms/payload/blob/main/packages/payload/src/auth/operations/refresh.ts */ export declare const refreshEndpoint: (pluginOptions: AuthjsPluginConfig) => Endpoint;