@useparagon/connect 1.0.1 → 1.0.2
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/changelog.md +4 -0
- package/dist/src/ConnectSDK.d.ts +3 -2
- package/dist/src/index.js +16 -5
- package/dist/src/types/sdk.d.ts +3 -3
- package/package.json +1 -1
package/changelog.md
ADDED
package/dist/src/ConnectSDK.d.ts
CHANGED
|
@@ -87,10 +87,11 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
87
87
|
* Logout the currently authenticated end user from the Paragon SDK.
|
|
88
88
|
*/
|
|
89
89
|
logout(): void;
|
|
90
|
+
connect(action: string, params?: ConnectParams): Promise<void>;
|
|
90
91
|
/**
|
|
91
92
|
* Display the Paragon Connect modal
|
|
92
93
|
*/
|
|
93
|
-
|
|
94
|
+
_connect(action: string, params?: ConnectParams & InstallOptions): Promise<void>;
|
|
94
95
|
_oauthCallback(oauthResponse: OauthCallbackResponse, credentialId?: string): Promise<void>;
|
|
95
96
|
_oauthErrorCallback(errorMessage: string | object): Promise<void>;
|
|
96
97
|
/**
|
|
@@ -181,7 +182,7 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
|
|
|
181
182
|
/**
|
|
182
183
|
* @param {host: string;} domain
|
|
183
184
|
* sets the domain for making http service request
|
|
184
|
-
* example: configureGlobal({host: 'myDomain.com'}) would set service urls as `https://service.myDomain.com`
|
|
185
|
+
* example: `configureGlobal({host: 'myDomain.com'});` would set service urls as `https://service.myDomain.com`
|
|
185
186
|
*/
|
|
186
187
|
configureGlobal(param: {
|
|
187
188
|
host: string;
|