@useparagon/connect 2.4.1 → 2.4.2-experimental.1

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.
@@ -159,6 +159,14 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
159
159
  onSuccess?: (installationEvent: IntegrationInstallEvent) => void;
160
160
  onError?: (error: unknown) => void;
161
161
  oauthTimeout?: number;
162
+ /**
163
+ * Optional. When this signal is aborted, the SDK stops the OAuth credential
164
+ * polling loop, clears the popup-watching intervals associated with this
165
+ * flow, and attempts to close the OAuth popup window. After teardown,
166
+ * `onError` is invoked with an `OAuthCancelledError`. `onSuccess` is not
167
+ * invoked.
168
+ */
169
+ abortSignal?: AbortSignal;
162
170
  }): void;
163
171
  private getIntegrationByName;
164
172
  private getSelectedMultipleAccountTypes;
@@ -441,6 +449,7 @@ export declare class InstallFlow {
441
449
  private postOptionsValue;
442
450
  private credentialId;
443
451
  private hasFinishedInstruction;
452
+ private oauthAbortController;
444
453
  constructor(paragon: ConnectSDK);
445
454
  start(integrationName: string, startOptions?: StartOptions): void;
446
455
  cancel(): Promise<void>;