Auth0Web constructor
Auth0Web(
- String domain,
- String clientId, {
- String? redirectUrl,
- CacheLocation? cacheLocation,
Creates an instance of the Auth0Web client with the provided
domain, clientId, and optional redirectUrl and cacheLocation properties.
redirectUrl is used for silent authentication in onLoad.
cacheLocation is used to specify where the SDK should store
its authentication state. Defaults to memory. Setting this to localStorage
is often required for seamless silent authentication on page reloads.
domain and clientId are both values that can be retrieved from the
Settings page of your Auth0 application.
Implementation
Auth0Web(final String domain, final String clientId,
{final String? redirectUrl, final CacheLocation? cacheLocation})
: _account = Account(domain, clientId),
_redirectUrl = redirectUrl,
_cacheLocation = cacheLocation;