1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-10 13:40:06 +00:00

Revert "USE KVC for excludedCredentials"

This reverts commit 0ea7c07fd9.
This commit is contained in:
Anders Åberg
2025-04-30 19:27:16 +02:00
parent 4654e4d6eb
commit c2e30b1ff3

View File

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