@medialane/sdk 0.164.0 → 0.166.0

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.
@@ -682,7 +682,6 @@ var ApiClient = class {
682
682
  };
683
683
  if (options.chain) body.chain = options.chain;
684
684
  if (options.email) body.email = options.email;
685
- if (options.accountToken) body.accountToken = options.accountToken;
686
685
  return this.request("/v1/users/me", {
687
686
  method: "POST",
688
687
  body: JSON.stringify(body),
@@ -713,14 +712,6 @@ var ApiClient = class {
713
712
  const body = await this.post("/v1/users/me/wallet", {});
714
713
  return body.walletAddress ? { walletAddress: body.walletAddress, needsKeySetup: body.needsKeySetup === true } : null;
715
714
  }
716
- async getSession() {
717
- try {
718
- return await this.request("/v1/users/me", { method: "GET" });
719
- } catch (err) {
720
- if (err instanceof MedialaneApiError && (err.status === 401 || err.status === 403)) return null;
721
- throw err;
722
- }
723
- }
724
715
  getMyWallet(siwsToken) {
725
716
  return this.request(
726
717
  "/v1/users/me",
@@ -1907,5 +1898,5 @@ exports.starkKeyPairFromPrivateKey = starkKeyPairFromPrivateKey;
1907
1898
  exports.stringifyBigInts = stringifyBigInts;
1908
1899
  exports.u256ToBigInt = u256ToBigInt;
1909
1900
  exports.unsealPrivateKey = unsealPrivateKey;
1910
- //# sourceMappingURL=chunk-HYHQH5SP.cjs.map
1911
- //# sourceMappingURL=chunk-HYHQH5SP.cjs.map
1901
+ //# sourceMappingURL=chunk-TPONHUAU.cjs.map
1902
+ //# sourceMappingURL=chunk-TPONHUAU.cjs.map