Class: Faraday::Credentials::Middleware

Inherits:
Middleware
  • Object
show all
Defined in:
lib/firebase/admin/middleware/request/credentials.rb

Instance Method Summary collapse

Instance Method Details

#on_request(env) ⇒ Object



7
8
9
10
# File 'lib/firebase/admin/middleware/request/credentials.rb', line 7

def on_request(env)
  creds = options[:credentials]
  creds.apply!(env[:request_headers])
end