'How to store data in angular [closed]
I am writing an application using angular. Once the server authentication is done I may have to store few details in the client side. e.g user name , password, location, roles etc which is required for processing other components in the angular. I am aware about localStorage
and sessionStorage
method to store the data. Due to sensitive data I cannot use that type of storage. Would like to know any other alternate way to store data in angular?
Solution 1:[1]
Storing the password on the client side is not a good idea, even if it is hashed. Try storing a token instead. You could also consider using an encryption library on the front end but you run the risk of slowing down the UI.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |