payload-authjs
Version:
A Payload CMS 3 plugin for Auth.js 5
20 lines (19 loc) • 638 B
TypeScript
import type { NextAuthConfig } from "next-auth";
import type { Provider } from "next-auth/providers";
/**
* Get provider metadata
*/
export declare const getProviderMetadata: (provider: Provider) => {
type: "email" | "oidc" | "oauth" | "credentials" | "webauthn";
id: string;
name: string;
icon: string;
};
/**
* Check if an email provider is available in the authjs config
*/
export declare const isEmailProviderAvailable: (authjsConfig: NextAuthConfig) => boolean;
/**
* Check if the authjs session strategy is database
*/
export declare const isSessionStrategyDatabase: (authjsConfig: NextAuthConfig) => boolean;