UNPKG

payload-authjs

Version:
12 lines (11 loc) 515 B
import type { NextAuthResult } from "next-auth"; import type { Payload } from "payload"; import type { AuthCollectionSlug } from "../payload/plugin"; /** * Get the Auth.js instance from the payload instance */ export declare const getAuthjsInstance: (payload: Payload, collectionSlug?: AuthCollectionSlug) => NextAuthResult; /** * Set the Auth.js instance in the payload instance */ export declare const setAuthjsInstance: (payload: Payload, collectionSlug: AuthCollectionSlug, authjs: NextAuthResult) => void;