lyokato/WebAuthnKit-iOS

Getting WAKError when try to register

Opened this issue · 1 comments

Hi, after implementation clicking on register show the create new key pop up but when I press create it throw the WAKError error 6 and error 8 sometime with error details as "The operation couldn't be completed". Can you tell the what these error number means or how to solve it??

I got WAKError 6 when I mapped allowCredential to PublicKeyCredentialDescriptor array and assign it to option. Probably should use options.addAllowCredential.

  var options = PublicKeyCredentialRequestOptions()
 {NSArray from json}.map { (credentialId: Any) in
              if let credentialIdString = credentialId as? String {
                  options.addAllowCredential(
                      credentialId: base64ToByte(credentialIdString),
                      transports: [.internal_]
                  )
              }
          }