UNPKG

@mikestraczek/cms-auth

Version:

Authentication and user management for the CMS template

17 lines (14 loc) 465 B
import * as react_jsx_runtime from 'react/jsx-runtime'; import { U as User } from './user-OIjSWV4Y.mjs'; type AuthContextType = { user: User | null; isSignedIn: boolean; isLoading: boolean; isAdmin: boolean; }; declare const useAuth: () => AuthContextType; type AuthProviderProps = { children: React.ReactNode; }; declare function AuthProvider({ children }: AuthProviderProps): react_jsx_runtime.JSX.Element; export { AuthProvider, useAuth };