-
Notifications
You must be signed in to change notification settings - Fork 563
[Fix] Handle account switching inside connected wallet for SIWE auth #3963
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
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 2e3c5e9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Your org requires the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
91a7941
to
1556cc7
Compare
size-limit report 📦
|
1556cc7
to
2982b2c
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3963 +/- ##
=======================================
Coverage 60.05% 60.05%
=======================================
Files 962 962
Lines 77543 77545 +2
Branches 3623 3624 +1
=======================================
+ Hits 46569 46571 +2
Misses 30293 30293
Partials 681 681
*This pull request uses carry forward flags. Click here to find out more.
|
Merge activity
|
…3963) FIXES: #3912 ### TL;DR This PR fixes the handling of account switching within a connected wallet in Sign-In with Ethereum (SIWE) authentication states. ### What changed? - Updated the `isLoggedIn` function to accept an `address` argument and added more checks to validate the JWT and the associated address. - Pass `account` as a new parameter to `useSiweAuth` to ensure the correct account is handled. - Removed experimental server external packages from `next.config.mjs`. - Removed `@shikijs/twoslash` dependency from `package.json`. ### How to test? 1. Switch accounts within a connected wallet and ensure the SIWE authentication state updates correctly. 2. Verify that the application runs without errors related to the removed experimental packages and dependencies. ### Why make this change? To ensure better account management and state consistency within the SIWE authentication framework, and to remove unused or experimental configurations for better stability and performance. --- <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on enhancing account switching in SIWE authentication states. ### Detailed summary - Updated functions to include `account` parameter for SIWE authentication - Changed login and authentication logic - Added `getAuthResult` function for server-side auth - Updated dependencies and imports > The following files were skipped due to too many changes: `pnpm-lock.yaml` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
2982b2c
to
2e3c5e9
Compare
FIXES: #3912
TL;DR
This PR fixes the handling of account switching within a connected wallet in Sign-In with Ethereum (SIWE) authentication states.
What changed?
isLoggedIn
function to accept anaddress
argument and added more checks to validate the JWT and the associated address.account
as a new parameter touseSiweAuth
to ensure the correct account is handled.next.config.mjs
.@shikijs/twoslash
dependency frompackage.json
.How to test?
Why make this change?
To ensure better account management and state consistency within the SIWE authentication framework, and to remove unused or experimental configurations for better stability and performance.
PR-Codex overview
This PR enhances SIWE auth handling in connected wallets.
Detailed summary
useSiweAuth
to includeactiveAccount