Class: Verse::UserAuthentication
- Inherits:
-
Faraday::Middleware
- Object
- Faraday::Middleware
- Verse::UserAuthentication
- Defined in:
- lib/helpers/user_authentication.rb
Instance Method Summary collapse
Instance Method Details
#call(env) ⇒ Object
2 3 4 5 |
# File 'lib/helpers/user_authentication.rb', line 2 def call(env) env[:request_headers]['User-Token'] = Verse.user_token @app.call(env) end |