The attestationObject contains the user's new public key to store and use for subsequent sign-ins.
According to the description, in the passkey authorization success callback, the attestationObject contains the public key, can the client decode the attestationObject and obtain the public key? If possible, can you help provide the relevant API?
public func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
switch authorization.credential {
case let credentialRegistration as ASAuthorizationPlatformPublicKeyCredentialRegistration:
// The attestationObject contains the user's new public key to store and use for subsequent sign-ins.
credentialRegistration.attestationObject
default: break
}
}