Skip to content

How safe are the keys/values? Can someone extract them? #509

Answered by nik27
renatop7 asked this question in Q&A
Discussion options

You must be logged in to vote

Yes. You should store API keys and other sensitive info on your backend and fetch it after user is authenticated.

In the readme of react-native-config it's explicitly mentioned:

Keep in mind this module doesn't obfuscate or encrypt secrets for packaging, so do not store sensitive keys in .env. It's basically impossible to prevent users from reverse engineering mobile app secrets, so design your app (and APIs) with that in mind.

This is also mentioned in React Native docs.
This article might also be helpful.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@renatop7
Comment options

Answer selected by renatop7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants