Skip to content

Commit

Permalink
Revert "chore: test logs"
Browse files Browse the repository at this point in the history
This reverts commit ce33213.
  • Loading branch information
apotdevin committed Jun 17, 2024
1 parent b36a80b commit ce58c28
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/lib/apollo/wrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,13 @@ const makeClient = (
if (ssrMode) return;

if (!refreshToken) {
console.log('NO REFRESH TOKEN', { accessToken, refreshToken });
// window.location.href = ROUTES.home;
window.location.href = ROUTES.home;
return;
}

return promiseToObservable(
refreshTokens(accessToken, refreshToken).catch(() => {
console.log('REFRESHTOKENS ERROR', {
accessToken,
refreshToken,
});
// window.location.href = ROUTES.home;
window.location.href = ROUTES.home;
})
).flatMap(accessToken => {
const oldHeaders = operation.getContext().headers;
Expand Down

0 comments on commit ce58c28

Please sign in to comment.