{"_id":"redux-persist-sensitive-storage","_rev":"9-e4525c7dc79bc1c7e83ceda8cbd3b225","name":"redux-persist-sensitive-storage","description":"redux-persist storage engine for react-native-sensitive-info","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.0":{"name":"redux-persist-sensitive-storage","version":"0.1.0","description":"redux-persist storage engine for react-native-sensitive-info","main":"index.js","files":["index.js"],"scripts":{"format":"prettier --write '**/*.js'","lint":"eslint '**/*.js' --max-warnings 0","precommit":"lint-staged","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/CodingZeal/redux-persist-sensitive-storage.git"},"keywords":["redux","redux-persist","redux-storage","redux-rehydrate","react-native","android","ios","keychain","shared-preferences"],"author":{"name":"Randy Coulman","email":"randy@codingzeal.com","url":"http://open.codingzeal.com"},"license":"MIT","bugs":{"url":"https://github.com/CodingZeal/redux-persist-sensitive-storage/issues"},"homepage":"https://github.com/CodingZeal/redux-persist-sensitive-storage#readme","peerDependencies":{"react-native":"*","react-native-sensitive-info":"3.x - 5.x"},"devDependencies":{"babel-eslint":"^7.2.3","eslint":"3.19.0","eslint-config-prettier":"^2.1.1","eslint-config-zeal":"^1.0.0","eslint-plugin-import":"^2.3.0","eslint-plugin-react":"^7.1.0","eslint-plugin-react-native":"^2.3.2","husky":"^0.13.4","lint-staged":"^3.6.1","prettier":"^1.4.4","react":"16.0.0-alpha.12","react-native":"^0.45.1"},"lint-staged":{"*.js":"prettier --list-different"},"gitHead":"62fce9099093edb9741c50635a19c774f1f1e860","_id":"redux-persist-sensitive-storage@0.1.0","_shasum":"8755c565c5cb42b0140ca962eeab32abfc1a4452","_from":".","_npmVersion":"4.2.0","_nodeVersion":"6.11.0","_npmUser":{"name":"randycoulman","email":"randy@randycoulman.com"},"dist":{"shasum":"8755c565c5cb42b0140ca962eeab32abfc1a4452","tarball":"https://registry.npmjs.org/redux-persist-sensitive-storage/-/redux-persist-sensitive-storage-0.1.0.tgz","integrity":"sha512-I22bXwMbKSyB2M2ijtJ6hm0phpC1nYwx6O3MkvlPLN5FdLqL5N269aQ+Ts4H0SzjbI8Mo0HJEUNMSR+B2c42MA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF4ik6+qIuDk1c1OMzymDfsEyyjXvOsr1qFv4wMRuX7yAiAGen74pLTb8V5fD/G/owdnBHIJpUkrwKl0V4QAXLNmuA=="}]},"maintainers":[{"name":"randycoulman","email":"randy@randycoulman.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-persist-sensitive-storage-0.1.0.tgz_1497481925824_0.930715017253533"}},"1.0.0":{"name":"redux-persist-sensitive-storage","version":"1.0.0","description":"redux-persist storage engine for react-native-sensitive-info","main":"index.js","files":["index.js"],"scripts":{"format":"prettier --write '**/*.js'","lint":"eslint '**/*.js' --max-warnings 0","precommit":"lint-staged","test":"jest --coverage","test:watch":"jest --watch","validate":"npm-run-all -p lint test"},"repository":{"type":"git","url":"git+https://github.com/CodingZeal/redux-persist-sensitive-storage.git"},"keywords":["redux","redux-persist","redux-storage","redux-rehydrate","react-native","android","ios","keychain","shared-preferences"],"author":{"name":"Randy Coulman","email":"randy@codingzeal.com","url":"http://open.codingzeal.com"},"license":"MIT","bugs":{"url":"https://github.com/CodingZeal/redux-persist-sensitive-storage/issues"},"homepage":"https://github.com/CodingZeal/redux-persist-sensitive-storage#readme","peerDependencies":{"react-native":"*","react-native-sensitive-info":"3.x - 5.x"},"devDependencies":{"babel-eslint":"^7.2.3","babel-jest":"^20.0.3","eslint":"3.19.0","eslint-config-prettier":"^2.1.1","eslint-config-zeal":"^1.0.0","eslint-plugin-import":"^2.3.0","eslint-plugin-jest":"^20.0.3","eslint-plugin-react":"^7.1.0","eslint-plugin-react-native":"^2.3.2","husky":"^0.13.4","jest":"^20.0.4","lint-staged":"^3.6.1","npm-run-all":"^4.0.2","prettier":"^1.4.4","react":"16.0.0-alpha.12","react-native":"^0.45.1","react-native-sensitive-info":"^5.1.0","testdouble":"^3.0.0"},"jest":{"preset":"react-native","setupTestFrameworkScriptFile":"<rootDir>/test/setupTests.js"},"lint-staged":{"*.js":"prettier --list-different"},"gitHead":"3434933c2e0d0c5375927064e74b94c7f09b3b08","_id":"redux-persist-sensitive-storage@1.0.0","_npmVersion":"5.0.3","_nodeVersion":"8.1.4","_npmUser":{"name":"randycoulman","email":"randy@randycoulman.com"},"dist":{"integrity":"sha512-AD8JyDsTpj+H+ZOGcg1qs9MkdcNOmHsBu+QL2kq2aKDB5HaCjy15qP4eryz7RVhWBatu4WC51R//1bfKHNb6yg==","shasum":"19f5e5bd8ce4c4a4bc852eec61d18360abe07b66","tarball":"https://registry.npmjs.org/redux-persist-sensitive-storage/-/redux-persist-sensitive-storage-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDjDjwNilDmbhtV2dssTTNKMKBt4RdjCPCGJA4WxaR6DAiEAhPFg70ju7wJCSNWB+wANR4VVCZ+esG4E+04tbwiWmHE="}]},"maintainers":[{"name":"randycoulman","email":"randy@randycoulman.com"},{"name":"seanculver","email":"seanculver@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-persist-sensitive-storage-1.0.0.tgz_1500677570423_0.6366427468601614"}}},"readme":"# redux-persist-sensitive-storage\n\n[![npm version](https://badge.fury.io/js/redux-persist-sensitive-storage.svg)](https://www.npmjs.com/package/redux-persist-sensitive-storage)\n[![CircleCI](https://circleci.com/gh/CodingZeal/redux-persist-sensitive-storage.svg?style=shield)](https://circleci.com/gh/CodingZeal/redux-persist-sensitive-storage)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\nStorage engine to use [react-native-sensitive-info](https://github.com/mCodex/react-native-sensitive-info) with [redux-persist](https://github.com/rt2zz/redux-persist).\n\nreact-native-sensitive-info manages all data stored in Android Shared Preferences and iOS Keychain.\n\n**NOTE:** Android Shared Preferences are not secure, but there is [a branch of react-native-sensitive-info](https://github.com/mCodex/react-native-sensitive-info/tree/keystore) that uses the Android keystore instead of shared preferences.  You can use that branch with redux-persist-sensitive-storage if you prefer.\n\n## Installation\n\nYou can install this package using either `yarn` or `npm`.  You will also need to install and link [react-native-sensitive-info](https://github.com/mCodex/react-native-sensitive-info).\n\nUsing Yarn:\n```\nyarn add redux-persist-sensitive-storage react-native-sensitive-info\nreact-native link react-native-sensitive-info\n```\n\nUsing npm:\n```\nnpm install --save redux-persist-sensitive-storage react-native-sensitive-info\nreact-native link react-native-sensitive-info\n```\n\n## Usage\n\nTo use redux-persist-sensitive-storage, configure redux-persist according to [its documentation](https://github.com/rt2zz/redux-persist#redux-persist).\n\nModify the `persistStore` call as follows:\n\n```js\nimport createSensitiveStorage from \"redux-persist-sensitive-storage\";\n\n// ...\n\npersistStore(store, { storage: createSensitiveStorage(options) });\n```\n\n`options` is optional and are used to configure the keychain service (iOS) and shared preferences name (Android) that react-native-sensitive-info uses.  See [the documentation](https://github.com/mCodex/react-native-sensitive-info#methods) for more information.\n\nHere's a full example:\n\n```js\nimport { compose, applyMiddleware, createStore } from \"redux\";\nimport { persistStore, autoRehydrate } from \"redux-persist\";\nimport createSensitiveStorage from \"redux-persist-sensitive-storage\";\n\nconst store = createStore(\n  reducer,\n  compose(\n    applyMiddleware(...),\n    autoRehydrate()\n  )\n);\n\npersistStore(store, {\n  storage: createSensitiveStorage({\n    keychainService: \"myKeychain\",\n    sharedPreferencesName: \"mySharedPrefs\"\n  });\n);\n```\n","maintainers":[{"email":"frank.west.iii@gmail.com","name":"frank.west.iii"},{"email":"seanculver@gmail.com","name":"seanculver"},{"email":"randy@randycoulman.com","name":"randycoulman"}],"time":{"modified":"2022-06-26T10:19:04.520Z","created":"2017-06-14T23:12:05.946Z","0.1.0":"2017-06-14T23:12:05.946Z","1.0.0":"2017-07-21T22:52:50.544Z"},"homepage":"https://github.com/CodingZeal/redux-persist-sensitive-storage#readme","keywords":["redux","redux-persist","redux-storage","redux-rehydrate","react-native","android","ios","keychain","shared-preferences"],"repository":{"type":"git","url":"git+https://github.com/CodingZeal/redux-persist-sensitive-storage.git"},"author":{"name":"Randy Coulman","email":"randy@codingzeal.com","url":"http://open.codingzeal.com"},"bugs":{"url":"https://github.com/CodingZeal/redux-persist-sensitive-storage/issues"},"license":"MIT","readmeFilename":"README.md","users":{"averagebeard":true}}