azirid-react 0.10.0 → 0.10.1
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/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -604,6 +604,7 @@ function useAuthMutations(deps) {
|
|
|
604
604
|
updateAccessToken(normalizeToken(data));
|
|
605
605
|
saveSessionTokens(data);
|
|
606
606
|
setError(null);
|
|
607
|
+
props.onAuthStateChange?.();
|
|
607
608
|
props.onLoginSuccess?.(data);
|
|
608
609
|
},
|
|
609
610
|
onError: (err) => {
|
|
@@ -621,6 +622,7 @@ function useAuthMutations(deps) {
|
|
|
621
622
|
updateAccessToken(normalizeToken(data));
|
|
622
623
|
saveSessionTokens(data);
|
|
623
624
|
setError(null);
|
|
625
|
+
props.onAuthStateChange?.();
|
|
624
626
|
props.onSignupSuccess?.(data);
|
|
625
627
|
},
|
|
626
628
|
onError: (err) => {
|
|
@@ -634,6 +636,7 @@ function useAuthMutations(deps) {
|
|
|
634
636
|
clearSession();
|
|
635
637
|
setError(null);
|
|
636
638
|
queryClient.clear();
|
|
639
|
+
props.onAuthStateChange?.();
|
|
637
640
|
props.onLogoutSuccess?.();
|
|
638
641
|
}
|
|
639
642
|
});
|
|
@@ -4343,7 +4346,7 @@ function usePasswordToggle() {
|
|
|
4343
4346
|
}
|
|
4344
4347
|
|
|
4345
4348
|
// src/index.ts
|
|
4346
|
-
var SDK_VERSION = "0.10.
|
|
4349
|
+
var SDK_VERSION = "0.10.1";
|
|
4347
4350
|
|
|
4348
4351
|
exports.AuthForm = AuthForm;
|
|
4349
4352
|
exports.AziridProvider = AziridProvider;
|