UNPKG

@authava/react-client

Version:

React client library for seamless integration with Authava's white-label authentication service

5 lines 390 B
import type { AuthavaSession, AuthavaUser } from '@authava/client'; export declare function isValidUser(user: unknown): user is NonNullable<AuthavaSession['user']>; export declare function hasRole(user: AuthavaUser, rolesToCheck: string | string[]): any; export declare function hasPermission(user: AuthavaUser, permsToCheck: string | string[]): any; //# sourceMappingURL=authUtils.d.ts.map