From 291c99e4e5631af9bc2bdab7a4f784d4c4b03ddb Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Tue, 14 Feb 2023 16:27:29 +0100 Subject: [PATCH] convert the user handle to an arrayBuffer because of format errors in case of given handle (usually concerns platform authenticators only) --- src/out/src/js/webauthn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/out/src/js/webauthn.js b/src/out/src/js/webauthn.js index 51917a4..9305e32 100644 --- a/src/out/src/js/webauthn.js +++ b/src/out/src/js/webauthn.js @@ -179,7 +179,7 @@ const requestCredentials = (publicKey) => { response: { authenticatorData: base64ArrayBuffer(authenticateInfo.response.authenticatorData), signature: base64ArrayBuffer(authenticateInfo.response.signature), - userHandle: authenticateInfo.response.userHandle, + userHandle: base64ArrayBuffer(authenticateInfo.response.userHandle), clientDataJSON: base64ArrayBuffer(authenticateInfo.response.clientDataJSON) }, type: authenticateInfo.type