How to store data in angular [closed]

Tags: ,



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?

Answer

Storing the password on the client side is not a good idea, even if it is hashed. Try storing a token instead.
Or instead, using an encryption service before saving all the client data may eliminate privacy concerns, but you run the risk of slowing down the UI.



Source: stackoverflow