Fixed blocked-popup issue when authenticating.