Say I have a web app which is using angularjs (not a SPA though). In that I have a login mechanism which uses the angular $http service to make a call to the appropriate route and once the credentials have been verified it sends a JSON containing user info such as
{
firstName : "John",
lastName : "Doe",
email : "john.doe@xyz.com",
profileURI : "somelink.com"
}
I want to store this JSON in the browser so I can access and show it across multiple pages (inside the navbar).
So, is it recommended/good practice to use $localStorage to store such data? Are there any security concerns?