fix async auth logout issue