Skip to content

Fix handleUnlock iOS passkey cancellation logging - #2530

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

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

Conversation

@sentry

@sentry sentry Bot commented Sep 19, 2026

Copy link
Copy Markdown

This PR addresses an issue where handleUnlock in app/(protected)/(tabs)/settings/security.tsx was incorrectly logging user cancellations of passkey prompts on iOS as errors to Sentry.

The root cause was that the isCancelled check (error instanceof Error && error.name === 'NotAllowedError') failed for errors originating from the iOS Turnkey SDK. On iOS, the SDK throws a plain object {error: 'UserCancelled', message: 'The user cancelled the request.'} rather than a standard Error instance, causing the instanceof Error check to return false.

To fix this, the faulty isCancelled check has been replaced with the existing isWebAuthnUserCancelledError utility from lib/execute.ts. This utility correctly identifies user cancellations across different platforms by inspecting the error message, thus preventing legitimate user cancellations from being reported as unexpected errors.

Fixes SOLID-G9

@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 19, 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 19, 2026 10:34am UTC
solid-app-staging Ignored Ignored Preview Sep 19, 2026 10:34am 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