diff options
Diffstat (limited to 'templates/register')
| -rw-r--r-- | templates/register/register.html.template | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/register/register.html.template b/templates/register/register.html.template index 3b4d959..833a1a7 100644 --- a/templates/register/register.html.template +++ b/templates/register/register.html.template @@ -40,6 +40,10 @@ async function generateKey() { const name = document.getElementById("name").value; const publicKeyCredential = await navigator.credentials.create({publicKey: { + authenticatorSelection: { + residentKey: "required", + userVerification: "required", + }, challenge: Uint8Array.fromBase64("{{.Challenge}}").buffer, pubKeyCredParams: [ {alg: -9, type: "public-key"}, |
