diff --git a/utils/useFetch.jsx b/utils/useFetch.jsx index c5d389b..8fe2226 100644 --- a/utils/useFetch.jsx +++ b/utils/useFetch.jsx @@ -22,7 +22,7 @@ function useFetch(url) { axiosInstance.interceptors.request.use( function (config) { if (kc_token) { - config.headers.Authorization = `Bearer ${keycloak.token}`; + config.headers.Authorization = `Bearer ${kc_token}`; } return config; },