class Tinder::FaradayResponse::RaiseOnAuthenticationFailure

Public Class Methods

register_on_complete(env) click to toggle source
# File lib/tinder/faraday_response.rb, line 49
def self.register_on_complete(env)
  env[:response].on_complete do |response|
    raise AuthenticationFailed if response[:status] == 401
  end
end