Skip to content

Commit 8301b13

Browse files
committed
bugfix: Change source of client hash. According to spec, challenge in request is client data hash.
1 parent ae9880a commit 8301b13

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

WebAuthnKit/Sources/Client/Operation/ClientCreateOperation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ public class ClientCreateOperation: AuthenticatorMakeCredentialSessionDelegate {
253253
)
254254

255255
session.makeCredential(
256-
hash: self.clientDataHash,
256+
hash: self.options.challenge,
257257
rpEntity: rpEntity,
258258
userEntity: options.user,
259259
requireResidentKey: requireResidentKey,

0 commit comments

Comments
 (0)