Auth0 constructor

Auth0(
  1. String domain,
  2. String clientId, {
  3. LocalAuthentication? localAuthentication,
  4. CredentialsManager? credentialsManager,
})

Creates an intance of an Auth0 client with the provided domain and clientId properties.

domain and clientId are both values that can be retrieved from the application in your Auth0 Dashboard. If you want to use your own implementation to handle credential storage, provide your own CredentialsManager implementation by setting credentialsManager. A DefaultCredentialsManager instance is used by default. If you want to use biometrics or pass-phrase when using the DefaultCredentialsManager, set localAuthentication` to an instance of LocalAuthentication. Note however that this setting has no effect when specifying a custom credentialsManager.

Implementation

Auth0(final String domain, final String clientId,
    {final LocalAuthentication? localAuthentication,
    final CredentialsManager? credentialsManager})
    : _account = Account(domain, clientId) {
  _credentialsManager = credentialsManager ??
      DefaultCredentialsManager(
        _account,
        _userAgent,
        localAuthentication: localAuthentication,
      );
}