Gathering detailed insights and metrics for redux-persist-sensitive-storage
Gathering detailed insights and metrics for redux-persist-sensitive-storage
Gathering detailed insights and metrics for redux-persist-sensitive-storage
Gathering detailed insights and metrics for redux-persist-sensitive-storage
redux-persist storage engine for react-native-sensitive-info
npm install redux-persist-sensitive-storage
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
248 Stars
23 Commits
35 Forks
13 Watchers
1 Branches
6 Contributors
Updated on Nov 09, 2024
Latest Version
1.0.0
Package Id
redux-persist-sensitive-storage@1.0.0
Size
3.29 kB
NPM Version
5.0.3
Node Version
8.1.4
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
Storage engine to use react-native-sensitive-info with redux-persist.
react-native-sensitive-info manages all data stored in Android Shared Preferences and iOS Keychain.
NOTE: Android Shared Preferences are not secure, but there is a branch of react-native-sensitive-info that uses the Android keystore instead of shared preferences. You can use that branch with redux-persist-sensitive-storage if you prefer.
You can install this package using either yarn
or npm
. You will also need to install and link react-native-sensitive-info.
Using Yarn:
yarn add redux-persist-sensitive-storage react-native-sensitive-info
react-native link react-native-sensitive-info
Using npm:
npm install --save redux-persist-sensitive-storage react-native-sensitive-info
react-native link react-native-sensitive-info
To use redux-persist-sensitive-storage, configure redux-persist according to its documentation.
Modify the persistStore
call as follows:
1import createSensitiveStorage from "redux-persist-sensitive-storage";
2
3// ...
4
5persistStore(store, { storage: createSensitiveStorage(options) });
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 for more information.
Here's a full example:
1import { compose, applyMiddleware, createStore } from "redux";
2import { persistStore, autoRehydrate } from "redux-persist";
3import createSensitiveStorage from "redux-persist-sensitive-storage";
4
5const store = createStore(
6 reducer,
7 compose(
8 applyMiddleware(...),
9 autoRehydrate()
10 )
11);
12
13persistStore(store, {
14 storage: createSensitiveStorage({
15 keychainService: "myKeychain",
16 sharedPreferencesName: "mySharedPrefs"
17 });
18);
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 5/11 approved changesets -- score normalized to 4
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
92 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More