Skip to content

Conversation

magiziz
Copy link
Contributor

@magiziz magiziz commented Aug 22, 2025

Description

Fixed an issue where authConnector was always included in wagmi config when email and social login were disabled

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-3641

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

@Copilot Copilot AI review requested due to automatic review settings August 22, 2025 14:47
Copy link

linear bot commented Aug 22, 2025

Copy link

changeset-bot bot commented Aug 22, 2025

🦋 Changeset detected

Latest commit: f6d372f

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

This PR includes changesets to release 25 packages
Name Type
@reown/appkit-adapter-wagmi Patch
@reown/appkit Patch
pay-test-exchange Patch
@reown/appkit-adapter-bitcoin Patch
@reown/appkit-adapter-ethers Patch
@reown/appkit-adapter-ethers5 Patch
@reown/appkit-adapter-solana Patch
@reown/appkit-utils Patch
@reown/appkit-cdn Patch
@reown/appkit-cli Patch
@reown/appkit-codemod Patch
@reown/appkit-common Patch
@reown/appkit-controllers Patch
@reown/appkit-core Patch
@reown/appkit-experimental Patch
@reown/appkit-pay Patch
@reown/appkit-polyfills Patch
@reown/appkit-scaffold-ui Patch
@reown/appkit-siwe Patch
@reown/appkit-siwx Patch
@reown/appkit-testing Patch
@reown/appkit-ui Patch
@reown/appkit-universal-connector Patch
@reown/appkit-wallet Patch
@reown/appkit-wallet-button 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

Copy link

vercel bot commented Aug 22, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
appkit-basic-html Canceled Canceled Aug 22, 2025 3:29pm
appkit-demo Canceled Canceled Aug 22, 2025 3:29pm
appkit-gallery Canceled Canceled Comment Aug 22, 2025 3:29pm
appkit-laboratory Canceled Canceled Comment Aug 22, 2025 3:29pm
10 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
appkit-basic-example Ignored Ignored Aug 22, 2025 3:29pm
appkit-basic-sign-client-example Ignored Ignored Aug 22, 2025 3:29pm
appkit-basic-up-example Ignored Ignored Aug 22, 2025 3:29pm
appkit-ethers5-bera Ignored Ignored Aug 22, 2025 3:29pm
appkit-nansen-demo Ignored Ignored Aug 22, 2025 3:29pm
appkit-vue-solana Ignored Ignored Aug 22, 2025 3:29pm
appkit-wagmi-cdn-example Ignored Ignored Aug 22, 2025 3:29pm
ethereum-provider-wagmi-example Ignored Ignored Aug 22, 2025 3:29pm
next-wagmi-solana-bitcoin-example Ignored Ignored Aug 22, 2025 3:29pm
vue-wagmi-example Ignored Ignored Aug 22, 2025 3:29pm

Copy link
Contributor

@Copilot 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 fixes a bug where the authConnector was incorrectly being included in the wagmi configuration even when both email and social login features were disabled. The fix ensures that the connector is only added when at least one of these authentication methods is enabled.

Key changes:

  • Switch from using remoteFeatures to features for checking authentication settings
  • Add proper tracking of features in the base client
  • Update tests to reflect the new feature checking approach

Reviewed Changes

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

File Description
packages/appkit/src/client/appkit-base-client.ts Adds features property initialization to track local feature settings
packages/adapters/wagmi/src/client.ts Updates auth connector logic to use local features instead of remote features and fixes EIP6963 option check
packages/adapters/wagmi/src/tests/client.test.ts Updates test suite to use features instead of remoteFeatures and adds async/await patterns
.changeset/poor-papers-cry.md Documents the bug fix in the changeset

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

cursor[bot]

This comment was marked as outdated.

Copy link
Contributor

github-actions bot commented Aug 22, 2025

Warnings
⚠️

🔑 Potential UUID detected in packages/adapters/wagmi/src/tests/client.test.ts (line 405): 07ba87ed-43aa-4adf-4...

Generated by 🚫 dangerJS against f6d372f

Copy link
Contributor

github-actions bot commented Aug 22, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 78.38% 34706 / 44279
🔵 Statements 78.38% 34706 / 44279
🔵 Functions 76.18% 3820 / 5014
🔵 Branches 86.69% 8185 / 9441
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/adapters/wagmi/src/client.ts 77.83% 65.62% 80.95% 77.83% 121-122, 127-128, 139-141, 143, 205-206, 246-249, 352-353, 367, 387-388, 463-464, 475-476, 511-512, 529-530, 544-561, 581-582, 595-600, 610-611, 615-616, 621-653, 672-678, 681-692, 701-702, 713-714, 735-737, 751-752, 765-766, 781-782, 831-832, 844-845, 853-854, 859-860, 867-868, 876-877, 882-883, 892-893, 901-902, 907-908, 914-936, 939-952
packages/appkit/src/client/appkit-base-client.ts 72.31% 88.86% 75.11% 72.31% 183, 196-199, 202, 211-214, 224-225, 227-253, 285-286, 288-289, 294-295, 376-377, 413-419, 484-485, 514-520, 523-524, 527-528, 546-547, 562-563, 566-567, 609-610, 613, 654-658, 665-666, 669-670, 681-704, 713-714, 731-743, 747-768, 771-777, 780-786, 789-795, 798-804, 807-817, 820-826, 829-835, 851-863, 869-902, 905-915, 967-968, 973, 988-1004, 1018, 1022-1029, 1096-1098, 1102-1115, 1120-1121, 1129-1130, 1132-1133, 1182-1191, 1236-1237, 1249-1250, 1255, 1278-1283, 1326, 1347-1348, 1358, 1360-1376, 1381, 1440-1451, 1497-1510, 1555, 1561-1565, 1584-1585, 1604-1607, 1643-1662, 1685-1696, 1725-1726, 1732-1758, 1966-1967, 1999-2000, 2003-2004, 2017-2020, 2023-2024, 2044-2045, 2048-2049, 2061-2071, 2089-2090, 2093-2100, 2104-2105, 2119, 2127, 2130, 2134, 2139-2158, 2161-2170, 2177-2178, 2192-2193, 2196-2197, 2204-2205, 2244-2245, 2328-2329, 2332-2333, 2336-2339, 2342-2343, 2346-2347, 2350-2351, 2354-2355, 2358-2362, 2371-2380, 2389-244, 1113-1189, 1692, 2141-2162
Generated in workflow #14487 for commit f6d372f by the Vitest Coverage Report Action

cursor[bot]

This comment was marked as outdated.

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.

2 participants