INNER CODE UNIT · JavaScript

regDefaults

mylofi/webauthn-local-client · src/walc.js:242

function regDefaults({
	credentialType = "publicKey",
	relyingPartyID = document.location.hostname,
	relyingPartyName = "walc",
	attestation = "none",
	challenge = sodium.randombytes_buf(20),
	excludeCredentials = [ /* { type: "public-key", id: ..., } */ ],
	user: {
		name: userName = "walc-user",
		displayName: userDisplayName = userName,
		id: userID = sodium.randombytes_buf(5),
	} = {},
	publicKeyCredentialParams = (
		publicKeyAlgorithms.map(entry => ({
			type: "public-key",
			alg: entry.COSEID,
		}))
	),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…