Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<html>
<body>
<script>
navigator.login.setStatus('logged-in', {
accounts: [{
"id": "john_doe",
"given_name": "John",
"name": "John Doe",
"email": "john_doe@idp.example",
"picture": "account_picture.py",
},
{
"id": "jane_doe",
"given_name": "Jane",
"name": "Jane Doe",
"email": "jane_doe@idp.example",
"picture": "account_picture_uncached.py",
}],
expiration: 60*60*1000 // 1 hour
}).then(() => {
// If this page was opened as a popup, notify the opener.
if (window.opener) {
window.opener.postMessage("done_loading", "*");
}
});
</script>
</body>
</html>