File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
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
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ async function bootstrap() {
3030 'http://localhost:3000' ,
3131 / \. l o c a l h o s t : 3 0 0 0 $ / ,
3232 ENV_CONFIG . TOPCODER_WALLET_URL ,
33- / ^ h t t p s : \/ \/ [ \w - ] + \. t o p c o d e r - d e v \. c o m $ / , // allow wallet-v6 and other subdomains
33+ / ^ h t t p s : \/ \/ [ \w - ] + \. t o p c o d e r ( - d e v ) ? \. c o m $ / , // allow wallet-v6 and other subdomains
3434 ] ;
3535
3636 const corsConfig : cors . CorsOptions = {
You can’t perform that action at this time.
0 commit comments