Improve cross-domain authentication