When cross site tracking is enabled, which it is by default. Login is not working for custom domains in Safari.