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 99901dc commit 30fafd1Copy full SHA for 30fafd1
.changeset/ten-parrots-poke.md
@@ -0,0 +1,5 @@
1
+---
2
+"thirdweb": patch
3
4
+
5
+Fix siwe auth always forcing a switch chain call
packages/thirdweb/src/react/core/hooks/auth/useSiweAuth.ts
@@ -97,7 +97,7 @@ export function useSiweAuth(
97
import("../../../../auth/core/sign-login-payload.js"),
98
]);
99
100
- if (payload.chain_id) {
+ if (payload.chain_id && Number(payload.chain_id) !== chain.id) {
101
await activeWallet.switchChain(
102
getCachedChain(Number(payload.chain_id)),
103
);
0 commit comments