Skip to content

Commit 4ce600e

Browse files
authored
Merge pull request #70 from HiEventsDev/develop
Fix checkout redirect to login
2 parents 00efbcc + defd06d commit 4ce600e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

frontend/src/api/client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const ALLOWED_UNAUTHENTICATED_PATHS = [
1616
'forgot-password',
1717
'auth',
1818
'account/payment',
19+
'checkout',
1920
'/event/'
2021
];
2122

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

31+
3032
const existingToken = typeof window !== "undefined" ? window.localStorage.getItem('token') : undefined;
3133
if (existingToken) {
3234
setAuthToken(existingToken);

0 commit comments

Comments
 (0)