Method: X::BearerTokenAuthenticator#header

Defined in:
lib/x/bearer_token_authenticator.rb

#header(_request) ⇒ Hash{String => String}

Generate the authentication header for a request

Examples:

Generate a bearer authentication header

authenticator.header(request)


32
33
34
# File 'lib/x/bearer_token_authenticator.rb', line 32

def header(_request)
  {AUTHENTICATION_HEADER => "Bearer #{bearer_token}"}
end