Fixed issue with reauthentication when toekn expires.