We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68aa693 commit 31ce837Copy full SHA for 31ce837
.changeset/large-candies-cough.md
@@ -0,0 +1,5 @@
1
+---
2
+"thirdweb": patch
3
4
+
5
+Only update isLoggedIn state on successfull logins
packages/thirdweb/src/react/core/hooks/auth/useSiweAuth.ts
@@ -110,7 +110,7 @@ export function useSiweAuth(
110
111
return await authOptions.doLogin(signedPayload);
112
},
113
- onSettled: () => {
+ onSuccess: () => {
114
return queryClient.invalidateQueries({
115
queryKey: ["siwe_auth", "isLoggedIn"],
116
});
@@ -126,7 +126,7 @@ export function useSiweAuth(
126
127
return await authOptions.doLogout();
128
129
130
131
132
0 commit comments