-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix: social login not working with wallet buttong #5148
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: e95f96f The changes in this PR will be included in the next version bump. This PR includes changesets to release 25 packages
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 |
The latest updates on your projects. Learn more about Vercel for GitHub.
10 Skipped Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes a bug where social login functionality was not working properly with the wallet button. The issue was related to incorrect data retrieval from ChainController when setting social provider and social window properties.
- Reordered ChainController calls to ensure proper data retrieval after setting properties
- Added comprehensive test coverage for the connectSocial functionality
- Updated changeset documentation to reflect the bug fix
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
File | Description |
---|---|
packages/controllers/src/utils/ConnectorControllerUtil.ts | Fixed order of operations to retrieve account data after setting properties |
packages/controllers/tests/utils/ConnectorControllerUtil.test.ts | Added test coverage for connectSocial functionality |
.changeset/brown-roses-report.md | Added changeset documentation for the bug fix |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Coverage Report
File Coverage
|
Description
Fixed an issue where social login did not work with wallet button
Type of change
Associated Issues
For Linear issues: Closes APKT-3986
For GH issues: closes #...
Showcase (Optional)
If there is a UI change include the screenshots with before and after state.
If new feature is being introduced, include the link to demo recording.
Checklist
Note
Refactors
connectSocial
to correctly handle provider, popup, and events for social login with the wallet button, and adds unit tests for the flow.packages/controllers/src/utils/ConnectorControllerUtil.ts
:connectSocial
:social
associalProvider
; stop readingsocialProvider/socialWindow
from account state.socialWindow
locally; removevaltio
ref
).SOCIAL_LOGIN_*
events withprovider
.connectExternal
with receivedresultUri
.packages/controllers/tests/utils/ConnectorControllerUtil.test.ts
:connectSocial
tests to verifygetSocialRedirectUri
is called and update mocks/setup.@reown/*
packages; note fix for social login with wallet button.Written by Cursor Bugbot for commit e95f96f. This will update automatically on new commits. Configure here.