setBearer method

  1. @override
ClientIO setBearer(
  1. String value
)

The OAuth access token to authenticate with

Implementation

@override
ClientIO setBearer(value) {
  config['bearer'] = value;
  addHeader('Authorization', 'Bearer $value');
  return this;
}