@shuffleio/shuffle-mcps 0.0.56 → 0.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -972,10 +972,10 @@ var getAuthHeader = (overrideOrgId) => {
|
|
|
972
972
|
let orgId = overrideOrgId ?? _trackedOrgId;
|
|
973
973
|
if (!orgId && typeof localStorage !== "undefined") {
|
|
974
974
|
try {
|
|
975
|
-
const raw = localStorage.getItem("shuffle_user_info");
|
|
975
|
+
const raw = localStorage.getItem("shuffle_user_info") || localStorage.getItem("userinfo") || localStorage.getItem("user_info");
|
|
976
976
|
if (raw) {
|
|
977
977
|
const parsed = JSON.parse(raw);
|
|
978
|
-
orgId = parsed?.active_org?.id || parsed?.org_id || null;
|
|
978
|
+
orgId = parsed?.active_org?.id || parsed?.org_id || parsed?.active_org_id || parsed?.orgs && parsed.orgs[0]?.id || null;
|
|
979
979
|
}
|
|
980
980
|
} catch {
|
|
981
981
|
}
|