push_accounts (722B)
1 <!DOCTYPE html> 2 <html> 3 <body> 4 <script> 5 navigator.login.setStatus('logged-in', { 6 accounts: [{ 7 "id": "john_doe", 8 "given_name": "John", 9 "name": "John Doe", 10 "email": "john_doe@idp.example", 11 "picture": "account_picture.py", 12 }, 13 { 14 "id": "jane_doe", 15 "given_name": "Jane", 16 "name": "Jane Doe", 17 "email": "jane_doe@idp.example", 18 "picture": "account_picture_uncached.py", 19 }], 20 expiration: 60*60*1000 // 1 hour 21 }).then(() => { 22 // If this page was opened as a popup, notify the opener. 23 if (window.opener) { 24 window.opener.postMessage("done_loading", "*"); 25 } 26 }); 27 28 </script> 29 </body> 30 </html>