Authenticator constructor

Authenticator(
  1. Client? client, {
  2. int port = 3000,
  3. dynamic urlLancher(
    1. String url
    ) = _runBrowser,
  4. Iterable<String> scopes = const [],
  5. Uri? redirectUri,
})

Implementation

Authenticator(Client? client,
    {this.port = 3000,
    this.urlLancher = _runBrowser,
    Iterable<String> scopes = const [],
    Uri? redirectUri})
    : flow = redirectUri == null
          ? Flow.authorizationCodeWithPKCE(client)
          : Flow.authorizationCode(client)
        ..scopes.addAll(scopes)
        ..redirectUri = redirectUri ?? Uri.parse('http://localhost:$port/');