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:
@@ -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 }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user