How can I store Json file in environment variable of functions? Because I need to store Firebase service key. And also, how to fetch that Json in python code?
TL;DR
Developers want to set up Firebase Admin in Appwrite functions by storing the service account key JSON file in an environment variable. This can be achieved by uploading the JSON file to the cloud functions and referencing its location in the environment variable. To fetch the JSON in Python code, developers can use the `os` module to read the environment variable and authenticate Firebase Admin with the service account key.I need to do this:
TypeScript
cred = credentials.Certificate('path/to/serviceAccountKey.json')
Recommended threads
- Cloud function deploy stucks in processi...
Been trying for the last hours to deploy my function but for whatever reason, alwasy stuck on processing!
- One-time Cloud migration blocked by data...
Hi, I’m blocked on a one-time migration from Appwrite Cloud to my self-hosted Appwrite instance. We already fixed the region issue, and the migration now corre...
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...