Browse Source

More compact and expandable token checker

feature/mapper-integration
Quildra 2 years ago
parent
commit
245f13b83f
  1. 12
      packages/bridge-ui/src/app/app.config.ts

12
packages/bridge-ui/src/app/app.config.ts

@ -31,12 +31,12 @@ export const appConfig: ApplicationConfig = {
allowedList: [ allowedList: [
{ {
uriMatcher: (uri) => { uriMatcher: (uri) => {
let is_create = uri.match('.+\/create'); let needs_token = uri.match('.+\/create') != null;
let is_update = uri.match('.+\/update'); needs_token ||= uri.match('.+\/update') != null;
let is_delete = uri.match('.+\/delete'); needs_token ||= uri.match('.+\/delete') != null;
let is_login = uri.match('.+\/login'); needs_token ||= uri.match('.+\/login') != null;
let is_claim = uri.match('.+\/claim-racer'); needs_token ||= uri.match('.+\/claim-racer') != null;
return is_create != null || is_update != null || is_delete != null || is_claim != null; return needs_token;
}, },
tokenOptions: { tokenOptions: {
authorizationParams: { authorizationParams: {

Loading…
Cancel
Save