Skip to content

Commit

Permalink
remove unwanted code
Browse files Browse the repository at this point in the history
  • Loading branch information
sunilsabatp committed Aug 26, 2024
1 parent 6435573 commit 625d3e1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/utils/apiRequests/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ export function getAuthenticatedRequest<T>(
resolve(await res.json());
}
} else {
localStorage.removeItem('impersonationData');
logoutUser();
throw new ClientError(INVALID_TOKEN_STATUS_CODE, {
error_type: 'token_expired',
Expand Down Expand Up @@ -169,7 +168,6 @@ export function postAuthenticatedRequest<T>(
resolve(await res.json());
}
} else {
localStorage.removeItem('impersonationData');
logoutUser();
throw new ClientError(INVALID_TOKEN_STATUS_CODE, {
error_type: 'token_expired',
Expand Down Expand Up @@ -252,7 +250,6 @@ export function deleteAuthenticatedRequest<T>(
resolve(await res.json());
}
} else {
localStorage.removeItem('impersonationData');
logoutUser();
throw new ClientError(INVALID_TOKEN_STATUS_CODE, {
error_type: 'token_expired',
Expand Down Expand Up @@ -301,7 +298,6 @@ export function putAuthenticatedRequest<T>(
resolve(await res.json());
}
} else {
localStorage.removeItem('impersonationData');
logoutUser();
throw new ClientError(INVALID_TOKEN_STATUS_CODE, {
error_type: 'token_expired',
Expand Down

0 comments on commit 625d3e1

Please sign in to comment.