File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export class RolesGuard implements CanActivate {
2424
2525 const { auth0User = { } } = request ;
2626 const userRoles = Object . keys ( auth0User ) . reduce ( ( roles , key ) => {
27- if ( key . match ( / c l a i m s \/ r o l e s $ / gi) ) {
27+ if ( key . match ( / \/ r o l e s $ / gi) ) {
2828 return auth0User [ key ] as string [ ] ;
2929 }
3030
@@ -36,15 +36,15 @@ export class RolesGuard implements CanActivate {
3636 }
3737
3838 const userHandle = Object . keys ( auth0User ) . reduce ( ( handles , key ) => {
39- if ( key . match ( / c l a i m s \/ h a n d l e $ / gi) ) {
39+ if ( key . match ( / \/ h a n d l e $ / gi) ) {
4040 return auth0User [ key ] as string ;
4141 }
4242
4343 return handles ;
4444 } , [ ] ) ;
4545
4646 const userId = Object . keys ( auth0User ) . reduce ( ( ids , key ) => {
47- if ( key . match ( / c l a i m s \/ u s e r I d $ / gi) ) {
47+ if ( key . match ( / \/ u s e r I d $ / gi) ) {
4848 return auth0User [ key ] as string ;
4949 }
5050
You can’t perform that action at this time.
0 commit comments