UNPKG

@compugit/react-rbac

Version:

A comprehensive Role-Based Access Control (RBAC) library for React applications with support for groups, roles, permissions, and protected components

11 lines (10 loc) 298 B
export declare const useAuth: () => { user: import("..").User | null; loading: boolean; error: string | null; initialized: boolean; isAuthenticated: () => boolean; login: (user: import("..").User | null) => void; logout: () => void; refresh: () => Promise<void>; };