Fix: Remove org ID from JWT

This commit is contained in:
Daniel Hougaard
2024-03-17 18:48:09 +01:00
parent bbceb37d06
commit 2032063c24
4 changed files with 5 additions and 31 deletions
-6
View File
@@ -15,14 +15,8 @@ apiRequest.interceptors.request.use((config) => {
const mfaTempToken = getMfaTempToken();
const token = getAuthToken();
const providerAuthToken = SecurityClient.getProviderAuthToken();
const organizationId = localStorage.getItem("orgData.id");
if (config.headers) {
if (organizationId) {
// eslint-disable-next-line no-param-reassign
config.headers["x-infisical-organization-id"] = organizationId;
}
if (signupTempToken) {
// eslint-disable-next-line no-param-reassign
config.headers.Authorization = `Bearer ${signupTempToken}`;