Skip to content

Commit 7ddedfb

Browse files
gregfromstlclaude
andauthored
Fix: Catch siwe doLogin errors (#7012)
Co-authored-by: Claude <[email protected]>
1 parent 98eda9d commit 7ddedfb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/thirdweb/src/wallets/connection/autoConnectCore.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ const _autoConnectCore = async ({
207207
!props.siweAuth?.isLoggedIn &&
208208
!props.siweAuth?.isLoggingIn
209209
) {
210-
await props.siweAuth?.doLogin();
210+
await props.siweAuth?.doLogin().catch((err) => {
211+
console.warn("Error signing in with SIWE:", err.message);
212+
});
211213
}
212214
manager.isAutoConnecting.setValue(false);
213215
return autoConnected; // useQuery needs a return value

0 commit comments

Comments
 (0)