What is the best way to store private data in react-native?

前端 未结 3 1676
别那么骄傲
别那么骄傲 2020-11-30 13:25

How can i implement feature like remember me when authenticating via react application? I think unencrypted AsyncStorage isn\'t the best way to do

3条回答
  •  醉话见心
    2020-11-30 13:41

    Expo.SecureStore provides a way to encrypt and securely store key–value pairs locally on the device.

    Use SecureStore.setItemAsync(key, value, options) to store and SecureStore.getItemAsync(key, options) to retrieve data.

    Documentation: https://docs.expo.io/versions/latest/sdk/securestore

提交回复
热议问题