mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 00:29:34 +00:00
Fix: Remove org ID from JWT
This commit is contained in:
@@ -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}`;
|
||||
|
||||
Reference in New Issue
Block a user