From 83ba12379926e392688fc972d08fd7eb7555412c Mon Sep 17 00:00:00 2001 From: "sentry[bot]" <39604003+sentry[bot]@users.noreply.github.com> Date: Sat, 19 Sep 2026 10:34:09 +0000 Subject: [PATCH] Fix handleUnlock iOS passkey cancellation logging --- app/(protected)/(tabs)/settings/security.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/(protected)/(tabs)/settings/security.tsx b/app/(protected)/(tabs)/settings/security.tsx index fbe30939f..c7c2dcd5a 100644 --- a/app/(protected)/(tabs)/settings/security.tsx +++ b/app/(protected)/(tabs)/settings/security.tsx @@ -14,6 +14,7 @@ import useUser from '@/hooks/useUser'; import { getTotpStatus } from '@/lib/api'; import { getAsset } from '@/lib/assets'; import { EXPO_PUBLIC_TURNKEY_ORGANIZATION_ID } from '@/lib/config'; +import { isWebAuthnUserCancelledError } from '@/lib/execute'; import { lazyWithRetry } from '@/lib/lazyWithRetry'; import { cn } from '@/lib/utils'; @@ -78,7 +79,7 @@ export default function Security() { setIsUnlocked(true); } catch (error) { const isTimeout = error instanceof Error && error.message.includes('timed out'); - const isCancelled = error instanceof Error && error.name === 'NotAllowedError'; + const isCancelled = isWebAuthnUserCancelledError(error); if (isTimeout) { setUnlockError('Authentication timed out. Please try again.');