EndpointTokenSource constructor
Initialize with endpoint configuration.
url: The URL endpoint for token generationmethod: 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;