Auth0Web constructor
Auth0Web(
- String domain,
- String clientId, {
- String? redirectUrl,
- CacheLocation? cacheLocation,
- bool useDPoP = false,
Creates an instance of the Auth0Web client with the provided
domain, clientId, and optional redirectUrl, cacheLocation,
and useDPoP properties.
Parameters:
-
domainandclientIdare both values that can be retrieved from the Settings page of your Auth0 application. -
redirectUrlis used for silent authentication in onLoad. -
cacheLocationspecifies where the SDK should store its authentication state. Defaults tomemory. Setting this tolocalStorageis often required for seamless silent authentication on page reloads. -
useDPoPenables DPoP for enhanced token security. See README for details. Defaults tofalse.
Implementation
Auth0Web(final String domain, final String clientId,
{final String? redirectUrl,
final CacheLocation? cacheLocation,
final bool useDPoP = false})
: _account = Account(domain, clientId),
_redirectUrl = redirectUrl,
_cacheLocation = cacheLocation,
_useDPoP = useDPoP;