We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dbefff commit 26df20aCopy full SHA for 26df20a
web/src/lib/axios/ClientAxios.ts
@@ -12,11 +12,15 @@ const ClientAxios = axios.create({
12
// Add a request interceptor to add the token to the request
13
ClientAxios.interceptors.request.use(
14
(config) => {
15
- const token = getTokenLocal();
+ try {
16
+ const token = getTokenLocal();
17
- config.headers.authorization = `Bearer ${token}`;
18
+ config.headers.authorization = `Bearer ${token}`;
19
- return config;
20
+ return config;
21
+ } catch {
22
23
+ }
24
},
25
(error) => {
26
return Promise.reject(error);
0 commit comments