payload-authjs
Version:
A Payload CMS 3 plugin for Auth.js 5
12 lines (11 loc) • 515 B
TypeScript
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;