diff --git a/pact.cabal b/pact.cabal index b64668d09..829497d14 100644 --- a/pact.cabal +++ b/pact.cabal @@ -242,7 +242,7 @@ library , vector-algorithms >=0.7 , vector-space >=0.10.4 , yaml - , webauthn >= 0.7 + , webauthn >= 0.8 if flag(build-tool) cpp-options: -DBUILD_TOOL diff --git a/src/Pact/Types/Crypto.hs b/src/Pact/Types/Crypto.hs index 663592d75..ef8bce897 100644 --- a/src/Pact/Types/Crypto.hs +++ b/src/Pact/Types/Crypto.hs @@ -215,7 +215,7 @@ instance Scheme (SPPKScheme 'WebAuthn) where let payload = authData <> clientDataDigest -- Check the signature's validity. - first T.unpack $ WAVerify.verify publicKey payload sig + first T.unpack $ WAVerify.verify publicKey (WAVerify.Message payload) (WAVerify.Signature sig) -- Extract the original challenge from client data. ClientDataJSON { challenge } <- A.eitherDecode (BSL.fromStrict clientData)