@useparagon/connect 2.4.1-experimental.1 → 2.4.2-experimental-21145.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.
@@ -29,6 +29,9 @@ export type ConnectSDKError = {
29
29
  } | {
30
30
  name: 'OAuthTimeoutError';
31
31
  message: string;
32
+ } | {
33
+ name: 'OAuthCancelledError';
34
+ message: string;
32
35
  };
33
36
  type ErrorByName<T> = Extract<ConnectSDKError, {
34
37
  name: T;
@@ -60,6 +63,17 @@ export declare class OAuthBlockedError extends BaseSDKError {
60
63
  export declare class OAuthTimeoutError extends BaseSDKError {
61
64
  constructor();
62
65
  }
66
+ /**
67
+ * Thrown when an in-progress OAuth flow is cancelled via the abort signal
68
+ * supplied to `startOAuthFlow` (e.g. by `InstallFlow.cancel()`). This error is
69
+ * intentionally NOT part of `InstallFlowError` because it is swallowed inside
70
+ * `InstallFlow.handleOAuth` and never surfaces to consumer `onError` callbacks.
71
+ * Callers that pass their own `abortSignal` to `startOAuthFlow` should filter
72
+ * this error in their `onError` handler.
73
+ */
74
+ export declare class OAuthCancelledError extends BaseSDKError {
75
+ constructor();
76
+ }
63
77
  export declare function getConnectSDKError(error: unknown): ConnectSDKError;
64
78
  export declare class ParagonError extends Error {
65
79
  readonly code: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useparagon/connect",
3
- "version": "2.4.1-experimental.1",
3
+ "version": "2.4.2-experimental-21145.1",
4
4
  "description": "Embed integrations into your app with the Paragon SDK",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",