Safe to store access token inside AsyncStorage?

Viewed 5388

I am looking at storing a user access token within a React Native application. Initially I have been looking at Redux but instead I noticed that RN has AsyncStorage, now I am assuming that this in the case of IOS is the equivalent of NSUserDefaults. I may be wrong.

Would this be a good way to store the access token? I don't really want to go through the process of using Redux if I can help it for simple data storage.

4 Answers

react-native-keychain

It's secure. Also, if i'm not mistaken (don't quote me on any of the following) you might be able to use this to give users the ability to log in to the same app/webapp on that device; or other devices. I also think you can share login details with other apps you've developed assuming these apps have the same domain in the bundle identifier.

Related