Back

Granting Access to another Projects database.

  • 0
  • React Native
  • REST API
  • Cloud
Paulito
14 Mar, 2025, 18:12

I have two Application using Appwrite and Users from both applications must be able to access certain collection of the other Database. I am in the process of solving this issue with an API KEY to grant access. However to hide it securely with dotenv i must set up a backend server with node.js. I was wondering if there is a better way to do this? Help is very much appreciated!

TL;DR
Use an Appwrite function to grant access to the second project's database. This will automatically generate an API key stored in function runtime env vars. No need for managing API keys or setting up external servers.
Eldad
14 Mar, 2025, 18:29

You can use an Appwrite function and grant it access to your database, it will automatically generate and API key that will be available in your function runtime env vars.

This way, you don't to manage API keys, or external servers or worry about scale.

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