Skip to content

Commit

Permalink
Merge pull request #70 from HiEventsDev/develop
Browse files Browse the repository at this point in the history
Fix checkout redirect to login
  • Loading branch information
daveearley authored Jun 21, 2024
2 parents 00efbcc + defd06d commit 4ce600e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/api/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const ALLOWED_UNAUTHENTICATED_PATHS = [
'forgot-password',
'auth',
'account/payment',
'checkout',
'/event/'
];

Expand All @@ -27,6 +28,7 @@ export const api = axios.create({
withCredentials: true,
});


const existingToken = typeof window !== "undefined" ? window.localStorage.getItem('token') : undefined;
if (existingToken) {
setAuthToken(existingToken);
Expand Down

0 comments on commit 4ce600e

Please sign in to comment.