Skip to content

chore: improve social login latency#4107

Merged
svenvoskamp merged 21 commits intomainfrom
feat/improve-social-latency
May 9, 2025
Merged

chore: improve social login latency#4107
svenvoskamp merged 21 commits intomainfrom
feat/improve-social-latency

Conversation

@svenvoskamp
Copy link
Copy Markdown
Contributor

@svenvoskamp svenvoskamp commented Mar 31, 2025

Description

Removed an abundant call to magic, so we improve the social login latency. I’ve made some changes to the logic for how we connect with the w3mFrameProvider. Within the connect call, we can now either make a request to Magic to retrieve the user or initiate a social login.

Most of the changes are related to adding an optional socialUri param to most of our connect/connectExternal methods

Type of change

  • Chore (non-breaking change that addresses non-functional tasks, maintenance, or code quality improvements)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Associated Issues

For Linear issues: Closes APKT-xxx
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

  • Code in this PR is covered by automated tests (Unit tests, E2E tests)
  • My changes generate no new warnings
  • I have reviewed my own code
  • I have filled out all required sections
  • I have tested my changes on the preview link
  • Approver of this PR confirms that the changes are tested on the preview link

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 31, 2025

🦋 Changeset detected

Latest commit: fa61434

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 21 packages
Name Type
@reown/appkit-adapter-ethers5 Patch
@reown/appkit-adapter-ethers Patch
@reown/appkit-adapter-solana Patch
@reown/appkit-adapter-wagmi Patch
@reown/appkit-wallet-button Patch
@reown/appkit-utils Patch
@reown/appkit-controllers Patch
@reown/appkit-scaffold-ui Patch
@reown/appkit Patch
@reown/appkit-wallet Patch
@reown/appkit-adapter-bitcoin Patch
@reown/appkit-cdn Patch
@reown/appkit-cli Patch
@reown/appkit-common Patch
@reown/appkit-core Patch
@reown/appkit-experimental Patch
@reown/appkit-polyfills Patch
@reown/appkit-siwe Patch
@reown/appkit-siwx Patch
@reown/appkit-ui Patch
@reown/appkit-pay Patch

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

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 31, 2025

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

Name Status Preview Comments Updated (UTC)
appkit-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 9, 2025 0:47am
appkit-laboratory ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 9, 2025 0:47am
12 Skipped Deployments
Name Status Preview Comments Updated (UTC)
appkit-basic-ep ⬜️ Ignored (Inspect) May 9, 2025 0:47am
appkit-basic-ep-example ⬜️ Ignored (Inspect) May 9, 2025 0:47am
appkit-basic-example ⬜️ Ignored (Inspect) May 9, 2025 0:47am
appkit-basic-sign-client-example ⬜️ Ignored (Inspect) May 9, 2025 0:47am
appkit-basic-up-example ⬜️ Ignored (Inspect) May 9, 2025 0:47am
appkit-ethers5-bera ⬜️ Ignored (Inspect) May 9, 2025 0:47am
appkit-nansen-demo ⬜️ Ignored (Inspect) May 9, 2025 0:47am
appkit-vue-solana ⬜️ Ignored (Inspect) May 9, 2025 0:47am
appkit-wagmi-cdn-example ⬜️ Ignored (Inspect) May 9, 2025 0:47am
ethereum-provider-wagmi-example ⬜️ Ignored (Inspect) Visit Preview May 9, 2025 0:47am
next-wagmi-solana-bitcoin-example ⬜️ Ignored (Inspect) May 9, 2025 0:47am
vue-wagmi-example ⬜️ Ignored (Inspect) May 9, 2025 0:47am

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 31, 2025

Warnings
⚠️ File packages/adapters/ethers/src/client.ts contains a KEY or SECRET
⚠️ File packages/adapters/ethers5/src/client.ts contains a KEY or SECRET
⚠️ File packages/adapters/solana/src/client.ts contains a KEY or SECRET
⚠️ File packages/adapters/solana/src/providers/AuthProvider.ts contains a KEY or SECRET
⚠️ File packages/adapters/wagmi/src/client.ts contains a KEY or SECRET
⚠️ File packages/appkit-utils/src/solana/SolanaTypesUtil.ts contains a KEY or SECRET
⚠️ File packages/appkit/src/client/appkit-base-client.ts contains a KEY or SECRET
⚠️ File packages/controllers/src/controllers/ConnectionController.ts contains a KEY or SECRET
⚠️ File packages/wallet-button/src/utils/ConnectorUtil.ts contains a KEY or SECRET
⚠️ File packages/wallet/src/W3mFrameProvider.ts contains a KEY or SECRET
⚠️ File packages/wallet/src/W3mFrameSchema.ts contains a KEY or SECRET

Generated by 🚫 dangerJS against fa61434

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 31, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 76.03% 26607 / 34991
🔵 Statements 76.03% 26607 / 34991
🔵 Functions 67.65% 2244 / 3317
🔵 Branches 83.56% 5247 / 6279
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/adapters/ethers/src/client.ts 51.12% 63.63% 62.5% 51.12% 44-107, 123-124, 155-156, 170-193, 206-243, 249-250, 257-274, 279-286, 289-311, 314-319, 331-332, 364-365, 374-375, 396-406, 409-439, 443-444, 457-458, 460, 471-472, 483-484, 515-516, 520, 537-539, 546-550, 596-601, 610-628, 634-635, 639-644, 653-654, 665-666, 672-684
packages/adapters/ethers5/src/client.ts 49.62% 60.56% 62.5% 49.62% 45-108, 124-125, 156-157, 171-194, 207-243, 249-250, 257-274, 279-286, 289-311, 314-319, 330-331, 361-362, 371-372, 393-424, 427-437, 441-442, 455-456, 458, 469-470, 482-483, 516-517, 521, 538-540, 547-551, 589-603, 611-629, 635-636, 640-645, 654-655, 666-667, 673-685
packages/adapters/solana/src/client.ts 58.33% 72.5% 37.93% 58.33% 63-70, 74-75, 103-106, 109-110, 113-114, 117-118, 121-124, 127-135, 142-143, 153-173, 176-209, 212-213, 216-217, 225-226, 265-266, 276-277, 296-297, 304-305, 329-331, 334-338, 344, 359-365, 368-375, 391-392, 398-404
packages/adapters/solana/src/providers/AuthProvider.ts 73.77% 77.77% 69.23% 73.77% 44-49, 63-64, 78-79, 122-130, 144-145, 159-160, 163-174
packages/adapters/wagmi/src/client.ts 76.69% 63.55% 79.41% 76.69% 110-111, 116-117, 128-130, 132, 184-185, 227-231, 256-257, 311-312, 423, 439-454, 464-465, 486-487, 491-492, 498-505, 525-536, 545-546, 557-558, 579-581, 595-596, 618-619, 627-628, 633-634, 638-643, 650-651, 659-660, 665-666, 675-676, 684-685, 690-691, 697-719, 722-738
packages/adapters/wagmi/src/connectors/AuthConnector.ts 7.18% 100% 25% 7.18% 46-47, 50-68, 71-116, 119-240
packages/appkit/src/adapters/ChainAdapterBlueprint.ts 90.98% 97.05% 76.47% 90.98% 142-143, 166-170, 176-179
packages/appkit/src/client/appkit-base-client.ts 74.98% 88.07% 77.15% 74.98% 163, 215-216, 218-219, 224-225, 303-304, 340-346, 380-381, 402-408, 411-412, 429-430, 463-467, 480-494, 519-525, 529-541, 544-546, 549-551, 554-556, 559-561, 564-570, 573-575, 578-584, 600-612, 618-651, 654-664, 716-717, 723, 734-748, 754, 758-765, 778-782, 823, 865-869, 875-876, 888, 911-916, 987, 991-992, 998, 1019-1020, 1030, 1032-1048, 1053, 1092-1093, 1106-1117, 1149-1156, 1200, 1206-1210, 1239-1242, 1246, 1262-1272, 1294-1305, 1334-1335, 1341-1367, 1530-1531, 1563-1564, 1567-1568, 1583-1586, 1589-1590, 1610-1611, 1614-1615, 1637-1638, 1652, 1660, 1663, 1667, 1672-1691, 1694-1703, 1718-1719, 1762-1765, 1768-1769, 1857-1858, 1861-1864, 1867-1868, 1871-1872, 1875-1876, 1879-1880, 1883-1887, 1896-1905, 1914-1925, 1301, 1674-1695
packages/appkit/src/client/appkit.ts 52.23% 83.52% 83.33% 52.23% 65-79, 82-89, 92-109, 112-118, 123, 127, 131-134, 157-160, 166-171, 179-182, 185-188, 191-198, 206-207, 214-215, 246-254, 271-274, 276-283, 285, 287-306, 308-322, 329-330, 350-357, 384-385, 389-465, 498-502, 562-563, 170
packages/controllers/src/controllers/ConnectionController.ts 85.64% 76.36% 50.79% 85.64% 128-132, 135-139, 173-174, 193, 201, 205, 213, 217, 221, 225, 229, 233, 260-261, 264-265, 300, 304, 315-316, 113-273
packages/scaffold-ui/src/views/w3m-connecting-social-view/index.ts 80.26% 64.28% 62.5% 80.26% 55-58, 64-65, 67-68, 122, 200-212, 218-225
packages/wallet-button/src/utils/ConnectorUtil.ts 16.79% 100% 20% 16.79% 71-85, 87-249, 251-273, 275-318
packages/wallet/src/W3mFrameProvider.ts 48.25% 72.85% 49.35% 48.25% 65-68, 72-73, 81-87, 104-112, 132-140, 149-151, 160-162, 165-173, 177-189, 192-205, 208-220, 223-234, 237-252, 261-263, 275-277, 281-294, 297-306, 319-320, 329-331, 337-338, 350-352, 368-370, 374-390, 393-404, 407-421, 434-436, 440-458, 461-480, 497-505, 509-517, 524-526, 534-536, 541-550, 556-560, 566-570, 575-576, 582-584, 588-589, 650-652, 654-658, 663-664, 679-689, 704-705, 717-721, 730-734, 737-554
packages/wallet/src/W3mFrameSchema.ts 100% 100% 100% 100%
Generated in workflow #11743 for commit fa61434 by the Vitest Coverage Report Action

Copy link
Copy Markdown
Contributor

Copilot AI left a 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 improves social login latency by reducing redundant calls and updating connection logic to support a new socialUri parameter. The changes update various adapter connectors and their clients to conditionally pass along the socialUri parameter for improved social login flow.

  • Added socialUri parameter to connection methods in wagmi, solana, ethers, and bitcoin adapters.
  • Updated CHANGELOGs and changeset entries to document test versions for social login improvements.

Reviewed Changes

Copilot reviewed 52 out of 59 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/appkit-utils/CHANGELOG.md Updated changelog with a test version and dependency updates
packages/adapters/wagmi/src/connectors/AuthConnector.ts Added socialUri support in the connect method
packages/adapters/wagmi/src/client.ts Updated connection parameters to pass socialUri with a TS override
packages/adapters/wagmi/CHANGELOG.md Updated changelog documentation for wagmi adapter
packages/adapters/solana/src/providers/AuthProvider.ts Added socialUri option to the connect call
packages/adapters/solana/src/client.ts Updated connection parameters to pass socialUri
packages/adapters/solana/CHANGELOG.md Updated changelog documentation for solana adapter
packages/adapters/ethers5/src/client.ts Added socialUri parameter in the ethers5 adapter connect method
packages/adapters/ethers5/CHANGELOG.md Updated changelog documentation for ethers5 adapter
packages/adapters/ethers/src/client.ts Added socialUri parameter in the ethers adapter connect method
packages/adapters/ethers/CHANGELOG.md Updated changelog documentation for ethers adapter
packages/adapters/bitcoin/CHANGELOG.md Updated changelog documentation for bitcoin adapter
.changeset/modern-eyes-smash.md Added changeset entry to include social login improvements test version
Files not reviewed (7)
  • .changeset/pre.json: Language not supported
  • packages/adapters/bitcoin/package.json: Language not supported
  • packages/adapters/ethers/package.json: Language not supported
  • packages/adapters/ethers5/package.json: Language not supported
  • packages/adapters/solana/package.json: Language not supported
  • packages/adapters/wagmi/package.json: Language not supported
  • packages/appkit-utils/package.json: Language not supported

Comment thread packages/adapters/wagmi/src/client.ts
@svenvoskamp svenvoskamp added this pull request to the merge queue May 9, 2025
Merged via the queue into main with commit 5018edf May 9, 2025
38 checks passed
@svenvoskamp svenvoskamp deleted the feat/improve-social-latency branch May 9, 2025 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants