update, consume for login done
This commit is contained in:
@ -41,9 +41,9 @@ export function setupAxios(axios: any) {
|
||||
(config: { headers: { Authorization: string }; params?: any; url?: any; httpsAgent: any }) => {
|
||||
const auth = getAuth();
|
||||
|
||||
// if (auth?.access_token) {
|
||||
// config.headers.Authorization = `Bearer ${auth.access_token}`;
|
||||
// }
|
||||
if (auth?.access_token) {
|
||||
config.headers.Authorization = `Bearer ${auth.access_token}`;
|
||||
}
|
||||
return config;
|
||||
},
|
||||
async (err: any) => await Promise.reject(err)
|
||||
|
||||
Reference in New Issue
Block a user