EndpointTokenSource constructor

EndpointTokenSource({
  1. required Uri url,
  2. String method = 'POST',
  3. Map<String, String> headers = const {},
  4. Client? client,
})

Initialize with endpoint configuration.

  • url: The URL endpoint for token generation
  • method: The HTTP method (defaults to "POST")
  • headers: Additional HTTP headers (optional)
  • client: Custom HTTP client for testing (optional)

Implementation

EndpointTokenSource({
  required Uri url,
  this.method = 'POST',
  this.headers = const {},
  this.client,
}) : uri = url;