UNPKG

@heymarco/next-auth

Version:

A complete authentication solution for web applications.

12 lines (11 loc) 860 B
import { default as React } from 'react'; import type { BuiltInProviderType } from '@auth/core/providers'; import type { ThemeName } from '@reusable-ui/core'; import type { IconProps } from '@reusable-ui/components'; export declare const invalidSelector = ":is(.invalidating, .invalidated)"; export declare const getAuthErrorDescription: (errorCode: string) => React.ReactNode; export declare const resolveProviderName: (oAuthProvider: BuiltInProviderType) => string; export declare const getValidityTheme: (isValid: boolean | "unknown" | "loading" | "error" | undefined) => ThemeName; export declare const getValidityIcon: (isValid: boolean | "unknown" | "loading" | "error" | undefined) => IconProps["icon"]; export declare const isClientError: (fetchError: any) => boolean; export declare const handlePreventSubmit: React.FormEventHandler<HTMLFormElement>;