Skip to content
Back

securely storing API key-value pairs

  • 0
  • General
  • React Native
Mike
28 Oct, 2024, 17:04

As a non-pro developer working on a personal expo react native app, I have learned that keeping my api keys and values in a .env file is not secure. I'm using AppWrite as my backend, and I am assuming I should store such sensitive data like these variables somewhere on the server and access them on the server without having to put them insecurely in the .env file: APPWRITE_ENDPOINT, APPWRITE_PLATFORM, APPWRITE_PROJECT_ID, APPWRITE_DATABASE_ID, APPWRITE_USER_COLLECTION_ID

Can someone point me in the right direction about handling this problem? I haven't been able to find a good resource for this. I'm developing with Expo and AppWrite.

TL;DR
Developers are seeking advice on securely storing API key-value pairs for their Expo React Native app using AppWrite as the backend. They are looking for a solution to avoid storing sensitive data like API keys in a .env file. The recommended approach would be to store such sensitive data on the server and access them securely on the server without exposing them in the .env file.
ideclon
28 Oct, 2024, 17:14

None of those values are (or should be) sensitive data.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more