Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 96d77bd

Browse files
author
vikasrohit
committed
SUP-1447, Peer Review Updates
-- Removed logic for supporting compatibility with v2 tokens.
1 parent 15abbda commit 96d77bd

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

app/services/jwtInterceptor.service.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
// matchs everything besides /v3/members/{handle}/financial
2525
{ method: 'GET', url: '\/v3[\\d\\.\\-A-Za-z]*\/members\/\\w+\/(?!financial)\\w*'}
2626
];
27-
// list here all endpoints which are v3 but require v2 token for backward compatability
28-
var v3EndpointsWithV2Token = [];
2927

3028
for (var i = 0; i < haveItAddItEndpoints.length; i++) {
3129
var obj = haveItAddItEndpoints[i];
@@ -61,13 +59,6 @@
6159
// for everything else assume that we need to send token
6260
var idToken = config.url.indexOf('v2/') > -1 ? AuthTokenService.getV2Token() : AuthTokenService.getV3Token();
6361

64-
for (var i = 0; i < v3EndpointsWithV2Token.length; i++) {;
65-
var ep = v3EndpointsWithV2Token[i];
66-
if (config.url.indexOf(ep.url) > -1) {
67-
idToken = AuthTokenService.getV2Token();
68-
}
69-
};
70-
7162
if (!TcAuthService.isAuthenticated() || idToken == null) {
7263
$state.go('login');
7364
return;

0 commit comments

Comments
 (0)