INNER CODE UNIT · JavaScript
credentialID
mylofi/webauthn-local-client · src/walc.js:602
let credentialID = remainingBytes.slice(18,18 + credentialIDLength);
let publicKey = null;
let start = 18 + credentialIDLength;
let end = start + 1;
while (end < authData.byteLength) {
try {
publicKey = CBOR.decode(remainingBytes.slice(start,end).buffer);
break;
}
catch (err) {
end++;
}
}
// public-key was successfully decoded?
if (publicKey != null) {
// public-key in OKP (typically EdDSA) form?
if (