callix-dialer-widget 1.5.1 → 1.5.2
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.
|
@@ -52860,6 +52860,13 @@ function getAuthHeaders$1() {
|
|
|
52860
52860
|
};
|
|
52861
52861
|
if (token) {
|
|
52862
52862
|
headers["x-session-token"] = token;
|
|
52863
|
+
headers["Authorization"] = `Bearer ${token}`;
|
|
52864
|
+
} else {
|
|
52865
|
+
try {
|
|
52866
|
+
const keys = Array.from({ length: localStorage.length }, (_4, i2) => localStorage.key(i2)).filter(Boolean);
|
|
52867
|
+
console.warn("[CallInfoDisplay] Nenhum token encontrado no localStorage. Chaves disponíveis:", keys);
|
|
52868
|
+
} catch {
|
|
52869
|
+
}
|
|
52863
52870
|
}
|
|
52864
52871
|
return headers;
|
|
52865
52872
|
}
|