def login(user, password, sync_on_login = true)
        begin
          auth_response = Transactor.get('users/authenticate',
                                         user: user, password: password)
        rescue Error::Unauthorized