@imtbl/sdk 0.18.0 → 0.18.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.
package/dist/passport.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import globalAxios$1 from 'axios';
2
2
  import { ImmutableX, Config, generateLegacyStarkPrivateKey, createStarkSigner } from '@imtbl/core-sdk';
3
- import { UserManager } from 'oidc-client-ts';
3
+ import { UserManager, WebStorageStateStore } from 'oidc-client-ts';
4
4
  import jwt_decode from 'jwt-decode';
5
5
  import * as crypto from 'crypto';
6
6
  import { Magic } from 'magic-sdk';
@@ -1709,7 +1709,7 @@ class MultiRollupApiClients {
1709
1709
  }
1710
1710
 
1711
1711
  // eslint-disable-next-line @typescript-eslint/naming-convention
1712
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.18.0' };
1712
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.18.1' };
1713
1713
  const createConfig = ({ basePath, headers, }) => {
1714
1714
  if (!basePath.trim()) {
1715
1715
  throw Error('basePath can not be empty');
@@ -1765,7 +1765,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
1765
1765
  chainID,
1766
1766
  coreContractAddress,
1767
1767
  registrationContractAddress,
1768
- sdkVersion: 'ts-immutable-sdk-0.18.0',
1768
+ sdkVersion: 'ts-immutable-sdk-0.18.1',
1769
1769
  });
1770
1770
  /**
1771
1771
  * Sets `sdkVersion` at the time of build
@@ -6331,6 +6331,7 @@ const getAuthConfiguration = ({ oidcConfiguration, authenticationDomain, }) => {
6331
6331
  mergeClaims: true,
6332
6332
  loadUserInfo: true,
6333
6333
  scope: oidcConfiguration.scope,
6334
+ userStore: new WebStorageStateStore({ store: window.localStorage }),
6334
6335
  };
6335
6336
  if (oidcConfiguration.audience) {
6336
6337
  baseConfiguration.extraQueryParams = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Unified SDK",
4
- "version": "0.18.0",
4
+ "version": "0.18.1",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",