UNPKG

@nerdlat/auth

Version:

Authentication library similar to Clerk for React and Express applications

5 lines 457 B
import type { AuthContextType, AuthProviderProps } from '../types'; export declare const AuthContext: import("react").Context<AuthContextType | null>; export declare function AuthProvider({ children, fallback }: AuthProviderProps): import("react/jsx-runtime").JSX.Element; export declare function withAuth<P extends object>(Component: React.ComponentType<P>): (props: P) => import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=AuthProvider.d.ts.map