I have an application which has a landing page developed using AngularJS. The login screen is developed using AngularJS and when the user logs in, the token should be saved in local storage and go to the landing page.In that Landing page there is a button. When I press that button the page should route to a page which is developed using ReactJS which runs on a different server running in a different port .
(Eg. React app in port 3000 and Angular port is 4000)
When the page is redirected to the ReactJS page, that page should be able to access that user token which we previously saved in local storage . Also I want to know the security aspect of saving the token in local storage and is there any other alternatives to do that.