Skip to content
Advertisement

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?

Advertisement

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.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement