Back

Can we use API keys in a function to use from an app.

  • 0
  • React Native
  • Functions
  • Cloud
Oliver.
18 Oct, 2024, 09:09

hi, my question is about API keys and functions when making an app.

  1. we understand we can create functions in APPWRITE, then call on them in our code in an app.
  2. This function has its own repository.
  3. You can't, nor is it safe practice to put api keys in an apps code.

Questions. A. can we put an api key into an appwrite function in a closed repository to enable the creation of a collection and team ext.

B. can we call upon this function from our app to enable users to safely 'do more'.

TL;DR
Solution: Yes, you can put API keys in an Appwrite function within a closed repository for creating collections and extending team functionalities. You can then call upon this function from your app to safely enable users to perform more actions. For a detailed guide, check out: https://appwrite.io/blog/post/how-to-leverage-dynamic-api-keys-for-better-security.
Pingu
18 Oct, 2024, 09:25

You should find that this is exactly what you are looking for: https://appwrite.io/blog/post/how-to-leverage-dynamic-api-keys-for-better-security 🙂

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