Checks for and stores refreshed credentials after each action.