xapi-to 0.1.21 → 0.1.22

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.
package/src/client.ts CHANGED
@@ -683,7 +683,11 @@ export async function initiateOAuth(
683
683
  );
684
684
  }
685
685
 
686
- export async function listOAuthBindings(jwtToken: string, apiHost: string) {
686
+ export async function listOAuthBindings(
687
+ jwtToken: string,
688
+ apiHost: string,
689
+ signal?: AbortSignal,
690
+ ) {
687
691
  return request<Array<{
688
692
  id: string;
689
693
  apiKeyId: string;
@@ -696,7 +700,7 @@ export async function listOAuthBindings(jwtToken: string, apiHost: string) {
696
700
  provider: { id: string; name: string; type: string };
697
701
  }>>(
698
702
  `${scheme(apiHost)}://${apiHost}/api/oauth/bindings`,
699
- { method: 'GET', headers: jwtHeaders(jwtToken) },
703
+ { method: 'GET', headers: jwtHeaders(jwtToken), signal },
700
704
  DEFAULT_TIMEOUT_MS,
701
705
  IDEMPOTENT_RETRIES,
702
706
  );