From: Ardis Lu Date: Tue, 22 Jul 2025 03:08:35 +0000 (-0700) Subject: Extend params to recommended minimum X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=9ee1bb21863ced8a4108497ac0aca5dd7950ddec;p=static-encrypt-passkey Extend params to recommended minimum https://w3c.github.io/webauthn/#dom-publickeycredentialcreationoptions-pubkeycredparams --- 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) }