Class: AccessTokenAuthentication

Inherits:
Faraday::Middleware
  • Object
show all
Defined in:
lib/magloft.rb

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



4
5
6
7
# File 'lib/magloft.rb', line 4

def call(env)
  env[:request_headers]["X-Magloft-Accesstoken"] = Magloft.access_token
  @app.call(env)
end