http
HTTP/1.1 200 OK
Content-Type: text/html
Permissions-Policy: publickey-credentials-get=(self)
<!DOCTYPE html>
<html>
<head><title>Sign In</title></head>
<body>
<button id="login">Sign in with Passkey</button>
<script>
document.getElementById('login').addEventListener('click', async () => {
const credential = await navigator.credentials.get({
publicKey: {
challenge: new Uint8Array(32),
rpId: 'example.com',
userVerification: 'preferred'
}
});
// Send assertion to server
});
</script>
</body>
</html>