module Roda::RodaPlugins::BearerToken

  1. lib/roda/plugins/bearer_token.rb

The bearer_token plugin adds an r.bearer_token method for retrieving a bearer token from the Authorization HTTP header. Bearer tokens will in the authorization header will be recognized as long as they start with the case insensitive string “bearer ”.

Constants

METHOD = RUBY_VERSION >= "2.4" ? :match? : :match  

:nocov: