I have an app written in Angular2+ and a CMS website hosted on a different subdomain. Once a user logs in, I want both subdomain to share his login info (to display "hello username" on the header, regardless of the system), so the user experience when moving between app/website will be transparent to the user.
One way to achieve this scenario is by hosting the webapp inside the CMS, however, probably not a good idea (this is currently how it's implemented)
Is there a better way to share session info?