Wait for authentication to happen