INNER CODE UNIT · JavaScript
authDefaults
mylofi/webauthn-local-client · src/walc.js:388
function authDefaults({
credentialType = "publicKey",
relyingPartyID = document.location.hostname,
challenge = sodium.randombytes_buf(20),
allowCredentials = [ /* { type: "public-key", id: ..., } */ ],
mediation,
hints,
userVerification,
timeout,
extensions,
signal: cancelAuthSignal,
...otherOptions
} = {}) {
var defaults = {
[credentialType]: {
rpId: relyingPartyID,
challenge,
allowCredentials,