@matchain/matchid-sdk-react 0.1.51-alpha.2 → 0.1.52

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.
@@ -2,14 +2,14 @@ import {
2
2
  bind_exports,
3
3
  poh_exports,
4
4
  user_exports
5
- } from "../../chunk-5W2S6QMI.mjs";
5
+ } from "../../chunk-KJQKG6RI.mjs";
6
6
  import {
7
7
  isSuccess,
8
8
  wallet_exports
9
- } from "../../chunk-OWEJPD4R.mjs";
9
+ } from "../../chunk-OL4R4SZU.mjs";
10
10
  import "../../chunk-UA6XHZHX.mjs";
11
- import "../../chunk-HLUFAIFV.mjs";
12
11
  import "../../chunk-FB5MHLWX.mjs";
12
+ import "../../chunk-HLUFAIFV.mjs";
13
13
  import "../../chunk-LHNKZISB.mjs";
14
14
  import "../../chunk-J5LGTIGS.mjs";
15
15
  export {
@@ -1935,11 +1935,11 @@ function useUserInfo() {
1935
1935
  };
1936
1936
  const getLoginEmailCode = async (email) => {
1937
1937
  const res = await getEmailCodeApi(email);
1938
- if (res && res.data && isSuccess(res)) {
1938
+ if (isSuccess(res)) {
1939
1939
  window.sessionStorage.setItem("loginkey", res.data.key);
1940
1940
  return res.data.key;
1941
1941
  }
1942
- return "";
1942
+ throw new Error(res.message);
1943
1943
  };
1944
1944
  const loginByEmail = async ({
1945
1945
  email,