Constructor
new AuthPopup(config)
#
Parameters:
| Name | Type | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object |
Properties:
|
Methods
startPopupWindow() → {Promise.<any>}
#
Open the login form in a small browser popup window.
In the parent window, display a backdrop message dialog with the same dimensions, to provide an alternative method to log in if the browser refuses to open the window, and to allow the user to restart the process if they lose track of the popup window.
This should only be called in response to a user-initiated event like 'click', otherwise the user's browser will always refuse to open the window.
Returns:
Resolved when the login succeeds with the value returned by the
checkLoggedIn callback. Resolved with a falsy value if the user cancels the process.
Rejected when an unexpected error stops the login process.
- Type
- Promise.<any>