wait for auth finish