Answers for "react native store sensitive data in redux"

0

react native store sensitive data in redux

import { createKeychainStorage } from 'redux-persist-keychain-storage'; 
const keychainStorage = createKeychainStorage(); 
const persistConfig = { 
// Keychain expects a reverse domain name qualifier (app bundle ID) style key  keyPrefix: 'com.myapp.persist.',  storage: keychainStorage,}; 
  const mainReducer = combineReducers({
  token: persistReducer({ ...persistConfig,key: 'token' }),
  }
 );
Posted by: Guest on March-02-2021
0

react native store sensitive data in redux

$ yarn add redux-persist-keychain-storage react-native-keychain@^4.0.5
Posted by: Guest on March-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language