diff --git a/app/frontend/src/_helpers/fetchWrapper.js b/app/frontend/src/_helpers/fetchWrapper.js index 6f725532..7e80bd97 100644 --- a/app/frontend/src/_helpers/fetchWrapper.js +++ b/app/frontend/src/_helpers/fetchWrapper.js @@ -29,7 +29,11 @@ function authHeader(url) { const authStore = useAuthStore(); const jwt = authStore.getToken() const isLoggedIn = !!jwt; + // TODO: const isApiUrl = url.startsWith(import.meta.env.VITE_APP_API_URL); + alert(isLoggedIn) + console.log("isapi", isApiUrl) + console.log("isloggedin", isLoggedIn) if (isLoggedIn && isApiUrl) { return { Authorization: `Bearer ${jwt}` }; } else {