From 9ee1bb21863ced8a4108497ac0aca5dd7950ddec Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Mon, 21 Jul 2025 20:08:35 -0700 Subject: [PATCH] Extend params to recommended minimum https://w3c.github.io/webauthn/#dom-publickeycredentialcreationoptions-pubkeycredparams --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index ac9b13f..7b8fcc1 100644 --- a/script.js +++ b/script.js @@ -9,7 +9,7 @@ async function createPrf() { publicKey: { rp: { name: '' }, user: { id: new ArrayBuffer(0), name: '', displayName: '' }, - pubKeyCredParams: [{ type: 'public-key', alg: -7 }], + pubKeyCredParams: [{ type: 'public-key', alg: -8 }, { type: 'public-key', alg: -7 }, { type: 'public-key', alg: -257 }], extensions: { prf: { eval: { first: new ArrayBuffer(0) } } }, challenge: new ArrayBuffer(0) } -- 2.47.3