added new login API

This commit was merged in pull request #8.
This commit is contained in:
victorAnumudu
2024-05-02 14:00:57 +01:00
parent 3845ecbefe
commit f7f728c066
6 changed files with 42 additions and 21 deletions
+3 -3
View File
@@ -53,9 +53,9 @@ export function setupAxios(axios: any) {
axios.interceptors.request.use(
(config: {headers: {Authorization: string}}) => {
const auth = getAuth()
if (auth && auth.api_token) {
config.headers.Authorization = `Bearer ${auth.api_token}`
}
// if (auth && auth.api_token) {
// config.headers.Authorization = `Bearer ${auth.api_token}`
// }
return config
},