parse-community / parse-react

[EXPERIMENTAL] React, React Native, and React with SSR (e.g. Next.js) packages to interact with Parse Server backend
https://parseplatform.org/
MIT License
70 stars 27 forks source link

Not able to encrypt data for current user after using enableEncryptedUser #137

Open gaurav341 opened 12 months ago

gaurav341 commented 12 months ago

Hi,

Problem: current user data is in plain text form, anyone one access and read Solution tried: i just checked parse documents and found this link https://docs.parseplatform.org/js/guide/#encrypting-current-user, but it's not encrypting data as checked by appsec team Technology: React Native

versions react-native: 0.68.7 parse: 3.5.1

basic code:

import Parse from 'parse/react-native.js'; const {APP_ID, BASE_URL, PARSE_SECRET} = env

Parse.enableEncryptedUser(); Parse.secret = PARSE_SECRET; Parse.setAsyncStorage(AsyncStorage); Parse.initialize(APP_ID); Parse.serverURL = BASE_URL;