AuthInterceptor constructor

AuthInterceptor({
  1. AuthType authType = AuthType.bearer,
  2. String? tokenProvider()?,
  3. String? username,
  4. String? password,
  5. String apiKeyHeaderName = 'X-API-Key',
  6. Map<String, String> customHeadersProvider()?,
  7. Future<bool> onUnauthorized()?,
  8. List<String> excludedEndpoints = const [],
})

Implementation

AuthInterceptor({
  this.authType = AuthType.bearer,
  this.tokenProvider,
  this.username,
  this.password,
  this.apiKeyHeaderName = 'X-API-Key',
  this.customHeadersProvider,
  this.onUnauthorized,
  this.excludedEndpoints = const [],
});