@bindu-dashing/dam-solution-v2 5.8.142 → 5.8.144
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.
|
@@ -83,7 +83,11 @@ export const DamConfigProvider = ({ children, config }) => {
|
|
|
83
83
|
console.log("Fetching teams from:", fullUrl);
|
|
84
84
|
console.log("TeamID from token:", teamID);
|
|
85
85
|
// Call the new API endpoint using Teams API base URL
|
|
86
|
-
const response = yield axios.get(fullUrl
|
|
86
|
+
const response = yield axios.get(fullUrl, {
|
|
87
|
+
headers: {
|
|
88
|
+
Authorization: `Basic ZXh0ZXJuYWxfdXNlcjp1SHlTZ0toYTEyM1VqZWhL`,
|
|
89
|
+
},
|
|
90
|
+
});
|
|
87
91
|
console.log("Teams API response:", response === null || response === void 0 ? void 0 : response.data);
|
|
88
92
|
// Set teams from the API response
|
|
89
93
|
// Assuming the response structure is { data: [...] } or similar
|