lib/creditsafe/authenticate.rb in creditsafe_connect-0.1.5 vs lib/creditsafe/authenticate.rb in creditsafe_connect-0.1.6
- old
+ new
@@ -5,10 +5,10 @@
require 'creditsafe/version'
module Creditsafe
class Authenticate
def call(username, password)
- response = post('authenticate', username:, password:)
+ response = post('authenticate', username: username, password: password)
if response.success?
response.body[:token]
elsif response.status == 401
raise UnauthorizedError, response.body