Post

Replies

Boosts

Views

Activity

ios 16.4 passkey issue
ios 16.4 passkey can't find passkey info The passkey function was normal before ios 16.3, and the passkey information cannot be displayed after upgrading to 16.4 code : let publicKeyCredentialProvider = ASAuthorizationPlatformPublicKeyCredentialProvider(relyingPartyIdentifier: "xxxxx") let passkyerequest = publicKeyCredentialProvider.createCredentialAssertionRequest(challenge: parameters.challenge) let passkeysAllowCredentials = parameters.allowCredentials?.compactMap { credentialId -> ASAuthorizationPlatformPublicKeyCredentialDescriptor? in let base64 = Base64.base64URLToBase64(base64URL: credentialId) guard let credentialIdData = Data(base64Encoded: base64) else { return nil } return ASAuthorizationPlatformPublicKeyCredentialDescriptor(credentialID: credentialIdData) } if let ids = passkeysAllowCredentials { passkyerequest.allowedCredentials = ids }
1
0
651
Mar ’23