let regResult = await navigator.credentials.create({ publicKey: { attestation: "none", // unless you're security paranoid rp: { // rp = relying party id: document.location.hostname, name: "My Cool Web Site" }, user: { name: USER_NAME, displayName: USER_DISPLAY_NAME, id: USER_ID }, challenge: USER_REG_CHALLENGE, pubKeyCredParams: [ { type: "public-key", alg: -257 // RSASSA-PKCS1-v1_5 }, { type: "public-key", alg: -7 // ES256 / ECDSA (P-256) } ] } });