prettier config, dwnld button, dwnld content, chain login > purchase, selectWallet post in useAuth
This commit is contained in:
1 parent
5f4b13d7ba
commit
2351ee51eb
9 files changed
+409
-314
No files matched your search
@@ -1,17 +1,17 @@
|
||||
import axios from "axios";
|
||||
import axios from 'axios';
|
||||
|
||||
export const APP_API_BASE_URL = import.meta.env.VITE_API_BASE_URL;
|
||||
|
||||
export const request = axios.create({
|
||||
baseURL: APP_API_BASE_URL,
|
||||
baseURL: APP_API_BASE_URL,
|
||||
});
|
||||
|
||||
request.interceptors.request.use((config) => {
|
||||
const auth_v1_token = sessionStorage.getItem("auth_v1_token");
|
||||
const auth_v1_token = localStorage.getItem('auth_v1_token');
|
||||
|
||||
if (auth_v1_token) {
|
||||
config.headers.Authorization = auth_v1_token;
|
||||
}
|
||||
if (auth_v1_token) {
|
||||
config.headers.Authorization = auth_v1_token;
|
||||
}
|
||||
|
||||
return config;
|
||||
return config;
|
||||
});
|
||||
Reference in new issue
Block a user