Skip to content

Commit

Permalink
Update src/utils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
BradyMitch authored Mar 7, 2024
1 parent 4d5b404 commit c349abe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const hasAllRoles = (userRoles: string[], requiredRoles: string[]) =>
export const hasAtLeastOneRole = (userRoles: string[], requiredRoles: string[]) =>
requiredRoles.some((role) => userRoles.includes(role));

//
// Combine properties of each user type into a single object
export const normalizeUser = (userInfo: CombinedKeycloakUser): KeycloakUser => {
const {
name = '',
Expand Down

0 comments on commit c349abe

Please sign in to comment.