]> git.ardis.lu - static-encrypt-passkey/commitdiff
Extend params to recommended minimum
authorArdis Lu <ardisglu@gmail.com>
Tue, 22 Jul 2025 03:08:35 +0000 (20:08 -0700)
committerArdis Lu <ardisglu@gmail.com>
Tue, 22 Jul 2025 03:08:35 +0000 (20:08 -0700)
https://w3c.github.io/webauthn/#dom-publickeycredentialcreationoptions-pubkeycredparams

script.js

index ac9b13fc7b87638014d3b25f88a5e9f6f904bc6f..7b8fcc1566eb0412313c86b9eb4ef01b32bbdccf 100644 (file)
--- 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)
     }
This page took 0.034477 seconds and 4 git commands to generate.