Skip to content

Commit

Permalink
Use keycloak.token and localStorage for the first requst
Browse files Browse the repository at this point in the history
  • Loading branch information
sergesoroka committed Oct 4, 2024
1 parent e7139d9 commit 2ea9b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/useFetch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},
Expand Down

0 comments on commit 2ea9b14

Please sign in to comment.