I have 2 applications, the Dashboard and the Users. Each app requires users to be authenticated. The problem is that Users App is going to be served on a subdomain. For example the Dashboard app will be served at www.myapp.com and Users App will be served at www.users.myapp.com. Both apps should look for the same JTW stored in the local storage.
I found an article about cross domain local storage use localStorage across subdomains, but how can I test this? If I run both apps together they run on different ports, the first one runs on localhost:3000 and the other on localhost:3001.
The idea is pretty much how google works, once you log in to google.com then you can go to mail.google.com etc.