code: def change_credentials(self, user=None, auth_token=None):
          
          self.r_session.set_credentials(user, auth_token)
          self.r_session.login()
docs: Change login credentials.
  
          :param str user: Username used to connect to server.
          :param str auth_token: Authentication token used to connect to server.