UNPKG

techveda-react-auth

Version:

Techveda's React Authentication Library with context and hooks

4 lines (3 loc) 209 B
import { User } from "../context/types"; export declare const checkRole: (user: User | null, role: string) => boolean; export declare const checkPermission: (user: User | null, permission: string) => boolean;