Skip to content

chore: add message prop to SIWX_AUTH_ERROR event#4990

Merged
enesozturk merged 5 commits intomainfrom
enes/apkt-3749-ops-review-todo-investigate-siwx_auth_error
Sep 10, 2025
Merged

chore: add message prop to SIWX_AUTH_ERROR event#4990
enesozturk merged 5 commits intomainfrom
enes/apkt-3749-ops-review-todo-investigate-siwx_auth_error

Conversation

@enesozturk
Copy link
Copy Markdown
Contributor

Description

Adds message property to SIWX_AUTH_ERROR event for better error tracking

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

Copilot AI review requested due to automatic review settings September 10, 2025 11:58
@linear
Copy link
Copy Markdown

linear bot commented Sep 10, 2025

@vercel
Copy link
Copy Markdown

vercel bot commented Sep 10, 2025

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

Project Deployment Preview Comments Updated (UTC)
appkit-basic-html Ready Ready Preview Comment Sep 10, 2025 0:27am
appkit-demo Ready Ready Preview Comment Sep 10, 2025 0:27am
appkit-gallery Ready Ready Preview Comment Sep 10, 2025 0:27am
appkit-laboratory Ready Ready Preview Comment Sep 10, 2025 0:27am
10 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
appkit-basic-example Ignored Ignored Sep 10, 2025 0:27am
appkit-basic-sign-client-example Ignored Ignored Sep 10, 2025 0:27am
appkit-basic-up-example Ignored Ignored Sep 10, 2025 0:27am
appkit-ethers5-bera Ignored Ignored Sep 10, 2025 0:27am
appkit-nansen-demo Ignored Ignored Sep 10, 2025 0:27am
appkit-vue-solana Ignored Ignored Sep 10, 2025 0:27am
appkit-wagmi-cdn-example Ignored Ignored Sep 10, 2025 0:27am
ethereum-provider-wagmi-example Ignored Ignored Sep 10, 2025 0:27am
next-wagmi-solana-bitcoin-example Ignored Ignored Sep 10, 2025 0:27am
vue-wagmi-example Ignored Ignored Sep 10, 2025 0:27am

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Sep 10, 2025

⚠️ No Changeset found

Latest commit: 9a77669

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
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 enhances error tracking for SIWX authentication by adding a message property to the SIWX_AUTH_ERROR event. This provides more detailed information about authentication failures for better debugging and monitoring.

Key changes:

  • Added message property to SIWX_AUTH_ERROR event type definition
  • Updated all locations that send SIWX_AUTH_ERROR events to include error message
  • Updated test to verify the new message property is included

Reviewed Changes

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

File Description
packages/siwe/scaffold/views/w3m-connecting-siwe-view/index.ts Added error message to SIWX_AUTH_ERROR event and debug console log
packages/controllers/tests/utils/SIWXUtil.test.ts Updated test to verify message property is included in error event
packages/controllers/src/utils/TypeUtil.ts Added message property to SIWX_AUTH_ERROR event type definition
packages/controllers/src/utils/SIWXUtil.ts Updated all SIWX_AUTH_ERROR event calls to include parsed error message

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.

cursor[bot]

This comment was marked as outdated.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 78.31% 35262 / 45023
🔵 Statements 78.31% 35262 / 45023
🔵 Functions 75.98% 3875 / 5100
🔵 Branches 86.58% 8352 / 9646
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/appkit/exports/constants.ts 100% 100% 100% 100%
packages/controllers/src/utils/SIWXUtil.ts 75.38% 70.66% 56.52% 75.38% 40-41, 45-55, 58-59, 64-65, 71-84, 93-94, 97-98, 101-102, 105-106, 118-119, 152, 174-175, 177-178, 188-190, 193-208, 263, 286, 333-357, 448-459, 471-472, 51, 336-363
packages/siwe/scaffold/views/w3m-connecting-siwe-view/index.ts 7.86% 100% 0% 7.86% 23-27, 31-71, 75-125, 128-147, 84-145
Generated in workflow #14974 for commit 9a77669 by the Vitest Coverage Report Action

@enesozturk enesozturk added this pull request to the merge queue Sep 10, 2025
Merged via the queue into main with commit 9062e6b Sep 10, 2025
41 checks passed
@enesozturk enesozturk deleted the enes/apkt-3749-ops-review-todo-investigate-siwx_auth_error branch September 10, 2025 12:55
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.

4 participants