new WebAuth()
Helper to perform Auth against Auth0 hosted login page
It will use /authorize endpoint of the
Authorization Server (AS) with Code Grant and Proof Key for
Challenge Exchange (PKCE).
Methods
(static) authorize(parameters, options) → {Promise}
Starts the AuthN/AuthZ transaction against the AS in the in-app browser.
In iOS it will use SFSafariViewController and in
Android Chrome Custom Tabs.
To learn more about how to customize the authorize call, check the Universal Login Page article at https://auth0.com/docs/hosted-pages/login
- Source:
- See:
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
Object
|
Parameters to send on the AuthN/AuthZ request.
|
||||||||||||||||||||||||||||||||||||
options |
Object
|
Other configuration options.
|
Returns:
- Type:
-
Promise
(static) clearSession(parameters) → {Promise}
Removes Auth0 session and optionally remove the Identity Provider session.
In iOS it will use SFSafariViewController and in
Android Chrome Custom Tabs.
- Source:
- See:
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
Object
|
Parameters to send
|
Returns:
- Type:
-
Promise