Skip to content

fix(passkey): Prevent Sentry exception on iOS passkey cancellation - #2535

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

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

Conversation

@sentry

@sentry sentry Bot commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

This PR addresses an issue where iOS passkey cancellations, when wrapped by the Turnkey SDK, were incorrectly reported as exceptions in Sentry instead of being handled as warnings.

Changes Made:

  • Modified the error handling logic in hooks/useUser.ts to include isPasskeyPromptError(error) in the condition for identifying user cancellations. This ensures that Turnkey's { error: 'UserCancelled', message: 'The user cancelled the request.' } shape is correctly caught and routed to the warning path.
  • Added a new test case in lib/utils/__tests__/passkey-credentials.test.ts to explicitly cover the Turnkey UserCancelled error shape, confirming that isPasskeyPromptError correctly identifies it.

Fixes SOLID-101

@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.

@vercel

vercel Bot commented Sep 20, 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 20, 2026 10:37am UTC
solid-app-staging Ignored Ignored Preview Sep 20, 2026 10:37am UTC

Request Review

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