Reputation: 3150
I am developing an application in React-Native. I have to make a login with user and password. And this have to be persistent in the device, but I don't know where to save it. SQLite Table? Shared Preferences? Can anybody tell me what could be the most correctly and secure option? It have to work both Android and iOS.
Greetings!
Upvotes: 3
Views: 7536
Reputation: 3496
You can store the Username and password in a central location where it can be accessed from multiple clients (IOS and Android).
Make it easy on yourself and store it in any DB you choose. In order for it to be persistent, don't use AsyncStorage
, it's not encrypted. For persistence with project version below 0.6, use something like React native keychain to store secure info in shared preferences.
Upvotes: 6