Authentication & Setup
1. Setup and Configure Axios
const api = axios.create(
Object.assign({}, axiosConfig, {
headers: {
get: {
"Accept-Language": "EN", // Set locale
},
},
})
);
api.interceptors.request.use((config) => {
config.headers["xb-tenant"] = ""; // TENANT is required
config.headers.Authorization = `Bearer ${sessionToken}`;
return config;
});
2. Configure TanStack Query Provider
Last updated