UNPKG

payload-authjs

Version:
20 lines (19 loc) 638 B
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;