@rent-the-runway/rtr-react-okta-auth
Version:
React hooks library for interacting with Okta. Lock out UI and Routes based on user authentication and the okta-user-groups the user belongs to. Can also lock out UI or Routes based on Claims.
6 lines (5 loc) • 419 B
TypeScript
declare function hasIntersection(arrayA: string[], arrayB: string[]): boolean;
declare function hasFullIntersection(groupsRequested: string[], availableGroups: string[]): boolean;
declare function hasAnyProperty(obj: any, properties: string[]): boolean;
declare function hasAllProperties(obj: any, properties: string[]): boolean;
export { hasIntersection, hasFullIntersection, hasAnyProperty, hasAllProperties, };