bearerToken method

Future<String> bearerToken()

The token from an Authorization: Bearer header.

Rejects with 401 and the Bearer challenge when the header is missing or uses another scheme, so a custom extractor starts from the token.

Implementation

Future<String> bearerToken() => extractors.bearerToken().require(this);