@pear-protocol/symmio-client 0.3.21 → 0.3.22
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/react/index.d.mts +19 -8
- package/dist/react/index.d.ts +19 -8
- package/dist/react/index.js +4 -2
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +4 -2
- package/dist/react/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/react/index.mjs
CHANGED
|
@@ -1193,7 +1193,7 @@ function useSymmAuth(params) {
|
|
|
1193
1193
|
const authEntry = useSymmAuthStore(
|
|
1194
1194
|
(state) => selectAuthStoreEntry(state, activeAccountAddress, chainId, address)
|
|
1195
1195
|
);
|
|
1196
|
-
useSymmAuthStore(
|
|
1196
|
+
const isLoading = useSymmAuthStore(
|
|
1197
1197
|
(state) => selectAuthStoreStatus(state, activeAccountAddress, chainId, address).isLoading
|
|
1198
1198
|
);
|
|
1199
1199
|
const error = useSymmAuthStore(
|
|
@@ -1228,7 +1228,8 @@ function useSymmAuth(params) {
|
|
|
1228
1228
|
} catch (error2) {
|
|
1229
1229
|
clearAuthState(resolvedAccountAddress, chainId, address);
|
|
1230
1230
|
setAuthStoreStatus(resolvedAccountAddress, chainId, address, {
|
|
1231
|
-
error: error2 instanceof Error ? error2 : new Error("failed to sign in")
|
|
1231
|
+
error: error2 instanceof Error ? error2 : new Error("failed to sign in"),
|
|
1232
|
+
isLoading: false
|
|
1232
1233
|
});
|
|
1233
1234
|
return null;
|
|
1234
1235
|
}
|
|
@@ -1251,6 +1252,7 @@ function useSymmAuth(params) {
|
|
|
1251
1252
|
return {
|
|
1252
1253
|
accessToken: token,
|
|
1253
1254
|
isAuthenticated: !!token,
|
|
1255
|
+
isLoading,
|
|
1254
1256
|
error,
|
|
1255
1257
|
signIn,
|
|
1256
1258
|
clear: clearAuth
|