Files
crawlab/frontend/crawlab-ui/typings/utils/auth.d.ts

6 lines
302 B
TypeScript

export declare const getToken: () => string | null;
export declare const setToken: (token: string) => void;
export declare const isAllowedAction: (target: string, action: string) => boolean;
export declare const isPro: () => boolean;
export declare const isAllowedRoutePath: (path: string) => boolean;