Skip to content

Fix: Catch siwe doLogin errors #7012

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

gregfromstl
Copy link
Member

@gregfromstl gregfromstl commented May 11, 2025


PR-Codex overview

This PR enhances error handling during the login process by adding a catch block to the doLogin method, ensuring that any errors are logged without interrupting the auto-connection flow.

Detailed summary

  • Added a catch block to props.siweAuth?.doLogin() to handle potential errors.
  • Logged a warning message with the error details using console.warn.
  • Ensured that manager.isAutoConnecting.setValue(false) is called regardless of login success.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@gregfromstl gregfromstl requested review from a team as code owners May 11, 2025 22:02
Copy link

changeset-bot bot commented May 11, 2025

⚠️ No Changeset found

Latest commit: 052685f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented May 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 11, 2025 10:10pm
login ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 11, 2025 10:10pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 11, 2025 10:10pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 11, 2025 10:10pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 11, 2025 10:10pm

Copy link

linear bot commented May 11, 2025

Copy link
Contributor

graphite-app bot commented May 11, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@github-actions github-actions bot added packages SDK Involves changes to the thirdweb SDK labels May 11, 2025
@vercel vercel bot temporarily deployed to Preview – wallet-ui May 11, 2025 22:02 Inactive
@vercel vercel bot temporarily deployed to Preview – login May 11, 2025 22:02 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 May 11, 2025 22:02 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www May 11, 2025 22:02 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground May 11, 2025 22:02 Inactive
@gregfromstl gregfromstl added the merge-queue Adds the pull request to Graphite's merge queue. label May 11, 2025
Copy link
Member Author

gregfromstl commented May 11, 2025

Merge activity

  • May 11, 6:02 PM EDT: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • May 11, 6:04 PM EDT: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.

Copy link
Contributor

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 54.21 KB (0%) 1.1 s (0%) 220 ms (+194.71% 🔺) 1.4 s
thirdweb (cjs) 193.92 KB (0%) 3.9 s (0%) 360 ms (+36.95% 🔺) 4.3 s
thirdweb (minimal + tree-shaking) 5.68 KB (0%) 114 ms (0%) 67 ms (+1093.14% 🔺) 180 ms
thirdweb/chains (tree-shaking) 524 B (0%) 11 ms (0%) 38 ms (+2144.58% 🔺) 48 ms
thirdweb/react (minimal + tree-shaking) 19.55 KB (0%) 391 ms (0%) 119 ms (+804.13% 🔺) 510 ms

@joaquim-verges joaquim-verges merged commit 7ddedfb into main May 11, 2025
19 of 20 checks passed
@joaquim-verges joaquim-verges deleted the greg/tool-4452-telegram-redirect-login-on-ios-embedded-browsers branch May 11, 2025 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-queue Adds the pull request to Graphite's merge queue. packages SDK Involves changes to the thirdweb SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants