@useparagon/connect
Advanced tools
Comparing version 1.0.20-experimental.1 to 1.0.20-experimental.2
@@ -208,6 +208,2 @@ import { IConnectCredential } from './entities/connectCredential.interface'; | ||
/** | ||
* also returns false if unable to find workflow in configured workflow property of any integration | ||
*/ | ||
private isWorkflowEnabled; | ||
/** | ||
* gets the user data from api `/sdk/me` | ||
@@ -214,0 +210,0 @@ */ |
@@ -5,2 +5,4 @@ import { IConnectIntegrationWithCredentialInfo } from '../entities/integration.interface'; | ||
import { IConnectUserContext } from './ConnectUserContext'; | ||
export declare const CREDENTIAL_POLL_INTERVAL = 3000; | ||
export declare const MAX_POLL_DURATION = 60000; | ||
export type OAuthFlowOptions = { | ||
@@ -21,2 +23,3 @@ context: IConnectUserContext; | ||
*/ | ||
export declare const startOAuthFlow: ({ context, integration, endUserSuppliedValues, authParams, isPreviewMode, installOptions, }: OAuthFlowOptions) => Promise<void>; | ||
export declare const startOAuthFlow: ({ context, integration, endUserSuppliedValues, authParams, isPreviewMode, installOptions, }: OAuthFlowOptions, sessionId: string) => Window | undefined | null; | ||
export declare const pollForCredential: (sessionId: string, sendAuthenticatedRequest: (url: string, options: RequestInit) => Promise<any>, render: () => void) => Promise<any>; |
@@ -0,1 +1,8 @@ | ||
/*! | ||
* The buffer module from node.js, for the browser. | ||
* | ||
* @author Feross Aboukhadijeh <https://feross.org> | ||
* @license MIT | ||
*/ | ||
/*! ***************************************************************************** | ||
@@ -15,1 +22,5 @@ Copyright (c) Microsoft Corporation. | ||
***************************************************************************** */ | ||
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ |
@@ -33,1 +33,10 @@ /** | ||
export declare function isUUID(value: string | unknown): boolean; | ||
/** | ||
* keeps attempting to execute a method until a desired result is achieved | ||
* | ||
* @param {() => Promise<T>} method | ||
* @param {((result: T, attempt: number) => Promise<boolean> | boolean)} shouldRetry | ||
* @param {(number | ((attempt: number) => number))} backoff | ||
* @returns {Promise<T>} | ||
*/ | ||
export declare function tryUntil<T = any>(method: () => Promise<T> | T, shouldRetry: (result: T | null, error?: Error | null, attempt?: number) => Promise<boolean> | boolean, backoff: number | ((attempt: number) => number)): Promise<T>; |
{ | ||
"name": "@useparagon/connect", | ||
"version": "1.0.20-experimental.1", | ||
"version": "1.0.20-experimental.2", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
584073
2301
76
21
29
5
72