Skip to content

Commit

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

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

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

0 comments on commit ce33213

Please sign in to comment.