@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.
- package/dist/{chunk-5W2S6QMI.mjs → chunk-KJQKG6RI.mjs} +2 -2
- package/dist/{chunk-OWEJPD4R.mjs → chunk-OL4R4SZU.mjs} +17 -28
- package/dist/chunk-OL4R4SZU.mjs.map +1 -0
- package/dist/components/index.js +3 -3
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +2 -2
- package/dist/hooks/api/index.js +2 -2
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +3 -3
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.js +3 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/example/src/components/Login/index.tsx +9 -1
- package/package.json +1 -1
- package/dist/chunk-OWEJPD4R.mjs.map +0 -1
- /package/dist/{chunk-5W2S6QMI.mjs.map → chunk-KJQKG6RI.mjs.map} +0 -0
|
@@ -15,9 +15,8 @@ import {
|
|
|
15
15
|
UsernameModal,
|
|
16
16
|
WalletAsset,
|
|
17
17
|
WalletModal
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-OL4R4SZU.mjs";
|
|
19
19
|
import "../chunk-UA6XHZHX.mjs";
|
|
20
|
-
import "../chunk-HLUFAIFV.mjs";
|
|
21
20
|
import {
|
|
22
21
|
Button,
|
|
23
22
|
Field,
|
|
@@ -27,6 +26,7 @@ import {
|
|
|
27
26
|
Overlay,
|
|
28
27
|
Popover
|
|
29
28
|
} from "../chunk-FB5MHLWX.mjs";
|
|
29
|
+
import "../chunk-HLUFAIFV.mjs";
|
|
30
30
|
import "../chunk-LHNKZISB.mjs";
|
|
31
31
|
import "../chunk-J5LGTIGS.mjs";
|
|
32
32
|
export {
|
package/dist/hooks/api/index.js
CHANGED
|
@@ -1378,11 +1378,11 @@ function useUserInfo() {
|
|
|
1378
1378
|
};
|
|
1379
1379
|
const getLoginEmailCode = async (email) => {
|
|
1380
1380
|
const res = await getEmailCodeApi(email);
|
|
1381
|
-
if (
|
|
1381
|
+
if (isSuccess(res)) {
|
|
1382
1382
|
window.sessionStorage.setItem("loginkey", res.data.key);
|
|
1383
1383
|
return res.data.key;
|
|
1384
1384
|
}
|
|
1385
|
-
|
|
1385
|
+
throw new Error(res.message);
|
|
1386
1386
|
};
|
|
1387
1387
|
const loginByEmail = async ({
|
|
1388
1388
|
email,
|