UNPKG

payload-authjs

Version:
24 lines (23 loc) 805 B
import type { NextAuthConfig } from "next-auth"; import type { Provider } from "next-auth/providers"; /** * Get provider metadata */ export declare const getProviderMetadata: (provider: Provider) => { type: "credentials" | "email" | "oauth" | "webauthn" | "oidc"; 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 a webauthn provider is available in the authjs config */ export declare const isWebauthnProviderAvailable: (authjsConfig: NextAuthConfig) => boolean; /** * Check if the authjs session strategy is database */ export declare const isSessionStrategyDatabase: (authjsConfig: NextAuthConfig) => boolean;