@useparagon/connect 2.2.6-experimental.1 → 2.2.6

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.
@@ -95,6 +95,9 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
95
95
  *
96
96
  * **Warning:** This favors stored to current state. This should typically be called in
97
97
  * unauthenticated contexts, as a fallback.
98
+ *
99
+ * If saved state includes environments, restores them before
100
+ * bootstrapping so the first bootstrap requests hit the correct server.
98
101
  */
99
102
  private loadState;
100
103
  getIntegrationId(integration: string): string;
@@ -251,12 +254,8 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
251
254
  private getIntegrationForWorkflow;
252
255
  private updateLocalState;
253
256
  /**
254
- * Sends user metadata to the API via PATCH /sdk/me (request body supports non-ASCII).
255
- */
256
- private patchUserMetadata;
257
- /**
258
- * Gets the user data from api `/sdk/me`.
259
- * User metadata is set via PATCH after this succeeds when provided in authenticate (see updateLocalState).
257
+ * gets the user data from api `/sdk/me`
258
+ * userMeta header is passed to support user metadata upsert based on authentication options
260
259
  */
261
260
  private fetchUserData;
262
261
  /**