-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathpopup.html
More file actions
33 lines (33 loc) · 754 Bytes
/
popup.html
File metadata and controls
33 lines (33 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>WebAuthn extension</title>
<style>
body {
font-family: sans-serif;
width: 300px;
padding: 10px;
}
textarea {
width: 100%;
height: 100px;
margin-bottom: 10px;
}
button {
margin: 5px 0;
width: 100%;
padding: 8px;
font-size: 14px;
}
</style>
<link rel="stylesheet" href="popup.css">
</head>
<body>
<h1>WebAuthn</h1>
<textarea id="optionsText" placeholder='Enter options JSON here'></textarea>
<button id="registerButton">Register (navigator.credentials.create)</button>
<button id="authButton">Authenticate (navigator.credentials.get)</button>
<script src="popup.js"></script>
</body>
</html>