payload-auth-plugin-fix
Version:
Authentication plugin for Payload CMS
21 lines • 654 B
TypeScript
import type { Plugin } from "payload";
import { ProvidersConfig, AccountInfo } from "../types.js";
interface PluginOptions {
enabled?: boolean;
providers: ProvidersConfig[];
accounts?: {
slug?: string | undefined;
hidden?: boolean | undefined;
};
successPath?: string;
allowSignUp?: boolean;
redirectFunctions?: {
[key: string]: (redirect_context: string, accountInfo: AccountInfo) => Promise<{
success: boolean;
redirect: string;
}>;
};
}
export declare const adminAuthPlugin: (pluginOptions: PluginOptions) => Plugin;
export {};
//# sourceMappingURL=admin.d.ts.map