WebAuth

WebAuth

new WebAuth(options)

Handles all the browser's AuthN/AuthZ flows

Source:
See:
Parameters:
Name Type Description
options Object
Name Type Attributes Description
domain String

your Auth0 domain

clientID String

your Auth0 client identifier obtained when creating the client in the Auth0 Dashboard

redirectUri String <optional>

url that the Auth0 will redirect after Auth with the Authorization Response

responseType String <optional>

type of the response used by OAuth 2.0 flow. It can be any space separated list of the values code, token, id_token. https://openid.net/specs/oauth-v2-multiple-response-types-1_0

responseMode String <optional>

how the Auth response is encoded and redirected back to the client. Supported values are query, fragment and form_post. https://openid.net/specs/oauth-v2-multiple-response-types-1_0.html#ResponseModes

scope String <optional>

scopes to be requested during Auth. e.g. openid email

audience String <optional>

identifier of the resource server who will consume the access token issued after Auth

plugins Array <optional>
_timesToRetryFailedRequests Number <optional>

Number of times to retry a failed request, according to https://github.com/visionmedia/superagent/blob/master/lib/should-retry.js