How secure is storing data with localStorage?

后端 未结 4 1702
闹比i
闹比i 2020-12-31 05:07

My app requires login, and I have a Remember username and password ability. The username and password is then stored with

localStorage.s

4条回答
  •  一向
    一向 (楼主)
    2020-12-31 05:41

    Each different cordova app, is like different web browsers with access to only the data or localStorage data that they set by themselves, so there is no way a different app can access the data in your localStorage that is set by your own app. Meanwhile if you want to authenticate users consider using a jwt access token for this instead of storing the actual raw username or password on the device.

提交回复
热议问题