Skip to content

fix(signup): ignore user-cancelled passkey creation in Sentry - #2551

Open
sentry[bot] wants to merge 1 commit into
masterfrom
seer/fix/ignore-passkey-cancel-sentry
Open

sentry[bot] wants to merge 1 commit into
masterfrom
seer/fix/ignore-passkey-cancel-sentry

Conversation

@sentry

@sentry sentry Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

This PR addresses issue SOLID-S3, where user-initiated cancellations during passkey creation were being reported as Sentry errors.

Root Cause:
The catch block in app/signup/passkey.tsx was unconditionally calling Sentry.captureException for all errors. When a user cancels the passkey prompt, the Turnkey SDK wraps the browser's NotAllowedError into a TurnkeyError with the message "Passkey creation was cancelled by the user.". This was incorrectly logged as an application error.

Changes Made:

  1. app/signup/passkey.tsx:
    • Imported the isPasskeyPromptError utility.
    • Added an early return if (isPasskeyPromptError(err)) return; before Sentry.captureException (line 118). This ensures that user-initiated cancellations, which are expected user behavior, are no longer sent to Sentry.
  2. lib/utils/__tests__/passkey-credentials.test.ts:
    • Added a new test case to the isPasskeyPromptError suite to explicitly verify that a TurnkeyError with the cancellation message is correctly identified as a passkey prompt error.

This fix prevents noise in Sentry by distinguishing between genuine application errors and expected user interactions.

Fixes SOLID-S3

@sentry <feedback>: Autofix iterates on these changes
@sentry stop iterating: Autofix stops iterating on this run

This PR was automatically generated by Sentry. You can adjust this setting at any time.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@vercel

vercel Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

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

2 Skipped Deployments
Project Deployment Actions Updated
solid-app Ignored Ignored Preview Sep 22, 2026 10:36am UTC
solid-app-staging Ignored Ignored Preview Sep 22, 2026 10:36am UTC

Request Review

This branch has not been deployed

No deployments
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.

0 participants