Auth0Web constructor

Auth0Web(
  1. String domain,
  2. String clientId, {
  3. String? redirectUrl,
  4. CacheLocation? cacheLocation,
  5. bool useDPoP = false,
})

Creates an instance of the Auth0Web client with the provided domain, clientId, and optional redirectUrl, cacheLocation, and useDPoP properties.

Parameters:

  • domain and clientId are both values that can be retrieved from the Settings page of your Auth0 application.

  • redirectUrl is used for silent authentication in onLoad.

  • cacheLocation specifies 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.

  • useDPoP enables DPoP for enhanced token security. See README for details. Defaults to false.

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;