
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
- Sharing Auth Provider Refresh Token
For some reason, the identities api always return empty "providerRefreshToken" property in response (in my case it is google), which make sense to not share wit...
- Change of billing cycle to support start...
Hii...is there any way to change my billing cycle from 20th to 1st...so that I aligns with my requirements.It becomes easier to track monthly usage crctly. I am...
- I am getting a 401 unauthorized response...
I have a Next.js application that stores user PDFs. I'm able to save them normally, but when trying to access the files using getFileView, I get a 401 Unauthori...
