@useparagon/connect
Advanced tools
@@ -162,2 +162,10 @@ import { IConnectCredential } from './entities/connectCredential.interface'; | ||
| oauthTimeout?: number; | ||
| /** | ||
| * Optional. When this signal is aborted, the SDK stops the OAuth credential | ||
| * polling loop, clears the popup-watching intervals associated with this | ||
| * flow, and attempts to close the OAuth popup window. After teardown, | ||
| * `onError` is invoked with an `OAuthCancelledError`. `onSuccess` is not | ||
| * invoked. | ||
| */ | ||
| abortSignal?: AbortSignal; | ||
| }): void; | ||
@@ -445,2 +453,3 @@ private getIntegrationByName; | ||
| private hasFinishedInstruction; | ||
| private oauthAbortController; | ||
| constructor(paragon: ConnectSDK); | ||
@@ -447,0 +456,0 @@ start(integrationName: string, startOptions?: StartOptions): void; |
@@ -32,2 +32,5 @@ export type ConnectSDKError = { | ||
| message: string; | ||
| } | { | ||
| name: 'OAuthCancelledError'; | ||
| message: string; | ||
| }; | ||
@@ -64,2 +67,13 @@ type ErrorByName<T> = Extract<ConnectSDKError, { | ||
| } | ||
| /** | ||
| * Thrown when an in-progress OAuth flow is cancelled via the abort signal | ||
| * supplied to `startOAuthFlow` (e.g. by `InstallFlow.cancel()`). This error is | ||
| * intentionally NOT part of `InstallFlowError` because it is swallowed inside | ||
| * `InstallFlow.handleOAuth` and never surfaces to consumer `onError` callbacks. | ||
| * Callers that pass their own `abortSignal` to `startOAuthFlow` should filter | ||
| * this error in their `onError` handler. | ||
| */ | ||
| export declare class OAuthCancelledError extends BaseSDKError { | ||
| constructor(); | ||
| } | ||
| export declare function getConnectSDKError(error: unknown): ConnectSDKError; | ||
@@ -66,0 +80,0 @@ export declare class ParagonError extends Error { |
+1
-1
| { | ||
| "name": "@useparagon/connect", | ||
| "version": "2.4.1", | ||
| "version": "2.4.2-experimental.1", | ||
| "description": "Embed integrations into your app with the Paragon SDK", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
538614
0.53%3604
0.64%4
33.33%