bearer abstract method
Returns the AuthHeader to be used for bearer authorization. The token returned by this method is a bearer token for accessing resources protected by OAuth 2.0.
The arguments should be token
used for Bearer authorization. The token
for Bearer authorization
will be set in AuthHeader.value of AuthHeader.
This credential information is based on the RFC 6750 specification.
Implementation
AuthHeader bearer({
required String token,
});