mirror of
https://github.com/amark/gun.git
synced 2025-07-10 14:52:34 +00:00
20 lines
677 B
HTML
20 lines
677 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script src="/gun/gun.js"></script>
|
|
<script src="/gun/sea.js"></script>
|
|
<script>
|
|
var gun = new Gun();
|
|
var user = gun.user();
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<h1>WebAuthn Example</h1>
|
|
<button id="create">Create keypass to get public key</button>
|
|
<button id="sign">Sign data using passkey</button>
|
|
<button id="verify">Verify signature of passkey</button>
|
|
<button id="put">Put to self's graph with WebAuthn</button>
|
|
<button id="put-with-pair">Put to self's graph with pair</button>
|
|
<script src="./webauthn.js"></script>
|
|
</body>
|
|
</html> |