Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/large-candies-cough.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---

Only update isLoggedIn state on successfull logins
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a typo in the changeset file: successfull should be spelled successful (with one 'l').

Suggested change
Only update isLoggedIn state on successfull logins
+Only update isLoggedIn state on successful logins

Spotted by Diamond

Is this helpful? React 👍 or 👎 to let us know.

4 changes: 2 additions & 2 deletions packages/thirdweb/src/react/core/hooks/auth/useSiweAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function useSiweAuth(

return await authOptions.doLogin(signedPayload);
},
onSettled: () => {
onSuccess: () => {
return queryClient.invalidateQueries({
queryKey: ["siwe_auth", "isLoggedIn"],
});
Expand All @@ -126,7 +126,7 @@ export function useSiweAuth(

return await authOptions.doLogout();
},
onSettled: () => {
onSuccess: () => {
return queryClient.invalidateQueries({
queryKey: ["siwe_auth", "isLoggedIn"],
});
Expand Down
Loading