ee.data.authenticateViaPopup
Shows a popup asking for the user's permission. Should only be called if ee.data.authenticate() called its opt_onImmediateFailed argument in the past.
May be blocked by pop-up blockers if called outside a user-initiated handler.
Usage | Returns | ee.data.authenticateViaPopup(success, error) | |
Argument | Type | Details | success | Function, optional | The function to call if authentication succeeds. |
error | Function, optional | The function to call if authentication fails, passing the error message. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["This function triggers a popup for user authentication, but only if a previous authentication attempt failed."],["Popup blockers may prevent the authentication popup if not initiated by a user action."],["`ee.data.authenticateViaPopup()` allows specifying success and error callback functions."]]],[]]