UNPKG

vix-ui

Version:

27 lines (26 loc) 734 B
/** * UserGroups holds the groups information of a user. It is mainly used to check permissions. */ export declare class UserGroups { groups: string[]; /** * construct UserGroups from OktaUserGroups * * @param oktaUserGroups Array of oktaGroups * oktaGroup example: * { ... * "profile": { * "name": "Everyone", * "description": "All users in your organization" * }, * ... * } */ constructor(oktaUserGroups: any); /** * Check if instance has enough permission for requireGroups. * * @returns true if this.groups contains all group of requireGroups, else then false */ hasPermission(requireGroups: string[]): boolean; }