AuthConfig constructor

const AuthConfig({
  1. required TokenSource source,
  2. String headerName = authorizationHeader,
  3. String prefix = bearerPrefix,
  4. bool overrideExisting = false,
})

Builds a config that injects authorization: Bearer <token> from source.

Implementation

const AuthConfig({
  required this.source,
  this.headerName = authorizationHeader,
  this.prefix = bearerPrefix,
  this.overrideExisting = false,
});