@matchain/matchid-sdk-react 0.1.51-alpha.2 → 0.1.51
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/{chunk-5W2S6QMI.mjs → chunk-UXFJALFG.mjs} +2 -2
- package/dist/{chunk-OWEJPD4R.mjs → chunk-VIJ4FUT3.mjs} +4 -4
- package/dist/{chunk-OWEJPD4R.mjs.map → chunk-VIJ4FUT3.mjs.map} +1 -1
- package/dist/components/index.js +3 -3
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/hooks/api/index.js +2 -2
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +2 -2
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/example/src/components/Login/index.tsx +9 -1
- package/package.json +1 -1
- /package/dist/{chunk-5W2S6QMI.mjs.map → chunk-UXFJALFG.mjs.map} +0 -0
package/dist/hooks/api/index.mjs
CHANGED
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
bind_exports,
|
|
3
3
|
poh_exports,
|
|
4
4
|
user_exports
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-UXFJALFG.mjs";
|
|
6
6
|
import {
|
|
7
7
|
isSuccess,
|
|
8
8
|
wallet_exports
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-VIJ4FUT3.mjs";
|
|
10
10
|
import "../../chunk-UA6XHZHX.mjs";
|
|
11
11
|
import "../../chunk-HLUFAIFV.mjs";
|
|
12
12
|
import "../../chunk-FB5MHLWX.mjs";
|
package/dist/hooks/index.js
CHANGED
|
@@ -1935,11 +1935,11 @@ function useUserInfo() {
|
|
|
1935
1935
|
};
|
|
1936
1936
|
const getLoginEmailCode = async (email) => {
|
|
1937
1937
|
const res = await getEmailCodeApi(email);
|
|
1938
|
-
if (
|
|
1938
|
+
if (isSuccess(res)) {
|
|
1939
1939
|
window.sessionStorage.setItem("loginkey", res.data.key);
|
|
1940
1940
|
return res.data.key;
|
|
1941
1941
|
}
|
|
1942
|
-
|
|
1942
|
+
throw new Error(res.message);
|
|
1943
1943
|
};
|
|
1944
1944
|
const loginByEmail = async ({
|
|
1945
1945
|
email,
|