Authentication now actually retrys after 5 minutes if the API server is offline.