gwitter
Version:
Turn GitHub Issues into your personal microblog platform
18 lines (17 loc) • 456 B
TypeScript
import { ReactNode } from 'react';
interface AuthContextType {
isAuthenticated: boolean;
user: {
login: string;
avatarUrl: string;
} | null;
token: string | null;
isLoading: boolean;
login: () => void;
logout: () => void;
}
export declare const useAuth: () => AuthContextType;
export declare const AuthProvider: ({ children }: {
children: ReactNode;
}) => import("react/jsx-runtime").JSX.Element;
export {};