use token as bearer token in authorization header
@@ -416,7 +416,7 @@ const getAxiosClient = (withHeaderToken: boolean) => {
const headers: { [key: string]: string } = {};
if (withHeaderToken && token) {
- headers.Authorization = token;
+ headers.Authorization = `Bearer ${token}`;
}
const instance = Axios.create({
