@asgardeo/react 0.5.10 → 0.5.12

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.
@@ -15,7 +15,7 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
- import { AsgardeoBrowserClient, UserProfile, SignInOptions, SignOutOptions, User, EmbeddedFlowExecuteResponse, SignUpOptions, EmbeddedFlowExecuteRequestPayload, EmbeddedSignInFlowHandleRequestPayload, Organization, IdToken, EmbeddedFlowExecuteRequestConfig, AllOrganizationsApiResponse, TokenResponse, HttpRequestConfig, HttpResponse } from '@asgardeo/browser';
18
+ import { AsgardeoBrowserClient, UserProfile, SignInOptions, SignOutOptions, User, EmbeddedFlowExecuteResponse, SignUpOptions, EmbeddedFlowExecuteRequestPayload, EmbeddedSignInFlowHandleRequestPayload, Organization, IdToken, EmbeddedFlowExecuteRequestConfig, AllOrganizationsApiResponse, TokenResponse, HttpRequestConfig, HttpResponse, Storage } from '@asgardeo/browser';
19
19
  import { AsgardeoReactConfig } from './models/config';
20
20
  /**
21
21
  * Client for mplementing Asgardeo in React applications.
@@ -38,7 +38,7 @@ declare class AsgardeoReactClient<T extends AsgardeoReactConfig = AsgardeoReactC
38
38
  * @returns Promise with the result of the operation
39
39
  */
40
40
  private withLoading;
41
- initialize(config: AsgardeoReactConfig): Promise<boolean>;
41
+ initialize(config: AsgardeoReactConfig, storage?: Storage): Promise<boolean>;
42
42
  updateUserProfile(payload: any, userId?: string): Promise<User>;
43
43
  getUser(options?: any): Promise<User>;
44
44
  getDecodedIdToken(sessionId?: string): Promise<IdToken>;
package/dist/cjs/index.js CHANGED
@@ -646,7 +646,7 @@ var AsgardeoReactClient = class extends import_browser6.AsgardeoBrowserClient {
646
646
  this.setLoading(false);
647
647
  }
648
648
  }
649
- initialize(config) {
649
+ initialize(config, storage) {
650
650
  let resolvedOrganizationHandle = config?.organizationHandle;
651
651
  if (!resolvedOrganizationHandle) {
652
652
  resolvedOrganizationHandle = (0, import_browser6.deriveOrganizationHandleFromBaseUrl)(config?.baseUrl);