http
HTTP/1.1 200 OK
Content-Type: text/html
Permissions-Policy: identity-credentials-get=(self)
<!DOCTYPE html>
<html>
<head><title>App Login</title></head>
<body>
<button id="signin">Sign in with Google</button>
<script>
document.getElementById('signin').addEventListener('click', async () => {
const credential = await navigator.credentials.get({
identity: {
providers: [{
configURL: 'https://accounts.google.com/fedcm.json',
clientId: 'abc123'
}]
}
});
// Use credential token
});
</script>
</body>
</html>