module Roda::RodaPlugins::BearerToken::RequestMethods

def bearer_token

authorization HTTP header.
Return the bearer token for the request if there is one in the
def bearer_token
  if (auth = @env["HTTP_AUTHORIZATION"]) && auth.send(METHOD, /\Abearer /i)
    auth[7, 100000000]
  end
end