AuthInterceptor constructor

AuthInterceptor({
  1. required Future<String?> tokenProvider(),
  2. String tokenPrefix = 'Bearer',
  3. String headerName = 'Authorization',
})

Creates an auth interceptor with a token provider

Implementation

AuthInterceptor({
  required this.tokenProvider,
  this.tokenPrefix = 'Bearer',
  this.headerName = 'Authorization',
});