fix issue with async auth