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