login_delay.html (271B)
1 <!DOCTYPE html> 2 <script> 3 async function doLogin() { 4 navigator.login.setStatus("logged-in"); 5 // Delay the close call to allow the accounts fetch to complete beforehand. 6 setTimeout(() => { 7 IdentityProvider.close(); 8 }, 200); 9 } 10 window.onload = doLogin; 11 </script>