lib/currency_cloud/session.rb in currency_cloud-0.7 vs lib/currency_cloud/session.rb in currency_cloud-0.7.1

- old
+ new

@@ -38,14 +38,14 @@ def authenticate validate params = {:login_id => login_id, :api_key => api_key} - @token = request.post('authenticate/api', params, :should_retry => false)['auth_token'] + CurrencyCloud.token = @token = request.post('authenticate/api', params, :should_retry => false)['auth_token'] end def reauthenticate - token = nil + CurrencyCloud.token = @token = nil authenticate end private def validate \ No newline at end of file