diff --git a/frontend/api/axios/client.js b/frontend/api/axios/client.js index b3e580bb45..822f7fd89f 100644 --- a/frontend/api/axios/client.js +++ b/frontend/api/axios/client.js @@ -65,14 +65,7 @@ export default function createClientAxios(options = {}) { if (!currentToken) { return config } - const tenantId = - (typeof import.meta !== 'undefined' && import.meta.env?.VITE_TENANT_ID) || - (typeof process !== 'undefined' && process.env?.VITE_TENANT_ID) || - '1' - - if (tenantId) { - config.headers['tenant-id'] = tenantId - } + const isTokenExpired = tokenManager.isExpired(30 * 1000) if (!isTokenExpired) {