webauthn4js
Version:
Node.js bindings to WebAuthn Go/Wasm library
19 lines (18 loc) • 437 B
HTML
<html>
<head>
<meta charset="utf-8">
<title>WebAuthn Demo</title>
<script src="example.js"></script>
</head>
<body>
<p>
<label for="email">Username:</label>
<input type="text" name="username" id="email" placeholder="e.g. foo@bar.com">
</p>
<p>
<button onclick="registerUser()">Register</button>
<button onclick="loginUser()">Login</button>
</p>
</body>
</html>