How can i implement feature like remember me
when authenticating via react application? I think unencrypted AsyncStorage
isn't the best way to do it, because data is open for users. I've tried to use realm
, but stuck into problem that cannot be resolved in android using expo
to test application. It says that i need to compile native code for android and edit that (Add realm object creation in MainApplication.js). I don't want to compile my project while it's not released yet. How does instagram and the other RN-apps store authentication data? What is the best approach?
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
I would recommend using a library like react-native-keychain to store private data in react-native
You can use it like that:
I hope my answer was helpful
You can use the simply storage of react-native to save the pair key=>value, the next class in TypeScript can help you: