1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-06 19:53:59 +00:00

Don't use kvc

This commit is contained in:
Anders Åberg
2025-04-30 23:32:31 +02:00
parent 733d0f4dd9
commit f86e67075e

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