Best way to store sensitive information


#1

Trying to make our app user friendly. We want to somehow remember the users login name, that way they don’t have to type it in everytime.

Local storage is a no no. Session storage kind of defeats the purpose. I guess cookies could be an option.

I know about https://ionicframework.com/docs/storage/ But we do have a browser version. Would that work with the browser? Is there much overhead using this ionic storage?

What is the best way to store user data?


#2

Yes, Ionic Storage has several backends, some of which work in browsers. I’m a bit concerned about the disconnect between your headline (“sensitive information”) and what you say in the post (“user’s login name”). I wouldn’t consider a login name “sensitive information”, but if you’re really wanting to store passwords, or something that actually is sensitive, the answer is, in large red flashing letters, DON’T.