Comments (3)
Change your import to...
import { encryptTransform } from "redux-persist-transform-encrypt/lib/sync";
Then I had this for my storage import...
import storage from 'redux-persist/lib/storage';
Next, I ditched that in favor of @react-native-community/async-storage@^1.12.1....
import AsyncStorage from '@react-native-community/async-storage';
Finally, change out your storage in your persistConfig to just...
storage: AsyncStorage
from redux-persist-transform-encrypt.
i am copying index.js file from lib folder to the level of package json folder . it working for this issue but then i am getting another issue.
ERROR redux-persist failed to create sync storage. falling back to noop storage.
ERROR Error: Native crypto module could not be used to get secure random number.
const persistConfig = {
key: "root",
storage,
timeout: null,
blacklist: ['common'],
transforms: [ encryptTransform({
secretKey: 'secret key already here',
onError: function (error) {
// Handle the error.
},
}),],
};
from redux-persist-transform-encrypt.
thanks with your changes ,its working fine for me.
from redux-persist-transform-encrypt.
Related Issues (20)
- persistor.purge() after error
- Cannot save simple text as state. HOT 2
- Add support for asynchronous encryption HOT 3
- Error: Unable to resolve module `crypto` HOT 2
- ERROR: (0, _reduxPersistTransformEncrypt.default) is not a function HOT 1
- How to update the secretKey async HOT 9
- Update Crypto-js version HOT 2
- Question: Why the Readme says that you should not generate your secret key on the client ? HOT 1
- My persist didnt encrypted HOT 7
- v4 Not working with react-native HOT 7
- Add encryption to project where users already have unencrypted data HOT 1
- Not working with react native HOT 12
- How to use .env.local variables with next js13 app directory HOT 2
- Could not run jest unit testcases on updating redux-persis-transform-encrypt package version from "3.0.1"to "5.0.0" HOT 4
- Vitest failing with message - Failed to resolve entry for package "redux-persist-transform-encrypt" HOT 3
- Critical Security Vulnerability from crypto-js HOT 1
- (Question) Need a way to decrypt the value outside the application HOT 1
- Module not found issue in react HOT 13
- Module not found error when using version 5.1.0 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redux-persist-transform-encrypt.