INNER CODE UNIT · JavaScript

findValue

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

	function findValue(node) {
		if (node.value && node.value instanceof Uint8Array) {
			return node.value;
		}
		else if (node.children) {
			for (let child of node.children) {
				let res = findValue(child);
				if (res != null) {
					return res;
				}
			}
		}
		return null;
	}
}

function parseAuthenticatorData(authData) {
	// https://developer.mozilla.org/en-US/docs/Web/API/Web_Authentication_API/Authenticator_data

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…