@singi-labs/sifa-sdk 0.19.9 → 0.19.10

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.
@@ -529,10 +529,15 @@ async function fetchReciprocityCandidate(config, options = {}) {
529
529
  }
530
530
 
531
531
  // src/query/fetchers/endorsement-inbox.ts
532
+ var PENDING_ENDORSEMENTS_LXM = "id.sifa.endorsement.getPending";
532
533
  async function fetchPendingEndorsements(config, options = {}) {
533
534
  const { cookieHeader, ...rest } = options;
534
535
  const headers = { ...rest.headers ?? {} };
535
536
  if (cookieHeader) headers.cookie = cookieHeader;
537
+ if (config.getAuthToken) {
538
+ const token = await config.getAuthToken(PENDING_ENDORSEMENTS_LXM);
539
+ if (token) headers.Authorization = `Bearer ${token}`;
540
+ }
536
541
  try {
537
542
  const data = await apiFetch(config, "/api/endorsements/pending", {
538
543
  cache: "no-store",