From c2e30b1ff34c9d1ee93e20f931fa1a57a284722a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20=C3=85berg?= Date: Wed, 30 Apr 2025 19:27:16 +0200 Subject: [PATCH] Revert "USE KVC for excludedCredentials" This reverts commit 0ea7c07fd984e8140412879089d6da3aa5ef74f3. --- .../CredentialProviderViewController.swift | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/desktop/macos/autofill-extension/CredentialProviderViewController.swift b/apps/desktop/macos/autofill-extension/CredentialProviderViewController.swift index 50d79ba7238..5befed88563 100644 --- a/apps/desktop/macos/autofill-extension/CredentialProviderViewController.swift +++ b/apps/desktop/macos/autofill-extension/CredentialProviderViewController.swift @@ -302,12 +302,8 @@ class CredentialProviderViewController: ASCredentialProviderViewController { // Convert excluded credentials to an array of credential IDs var excludedCredentialIds: [Data] = [] if #available(macOSApplicationExtension 15.0, *) { - // Use a runtime check approach that doesn't reference the property directly - let key = "excludedCredentials" - if let value = (request as AnyObject).value(forKey: key) { - if let excludedCreds = value as? [ASAuthorizationPlatformPublicKeyCredentialDescriptor] { - excludedCredentialIds = excludedCreds.map { $0.credentialID } - } + if let excludedCreds = request.excludedCredentials { + excludedCredentialIds = excludedCreds.map { $0.credentialID } } }