
So I define a global env - GCP_CREDENTIALS in global env of my appwrite projcet and refer to it in my functions as
gcp_creds: JSON.PARSE(GCP_CREDENTIALS)
to use it.
This is what I define it as -
{ "type": "service_account", "project_id": "abc-csas-xxx123", "private_key_id": "12345", ...}
Everything works fine I can access these in my functions until, I open the editor or make any changes in any global env, after updating anything in this env, my GCP_CREDS are automatically processed as
{ type: service_account,project_id: ace-coda-xxx123, private_key_id: 12345, ...}
And now my functions cant read it.
How do I fix this. Either by stopping whatever processing appwrite is doing to these or by altering the access method in my functions.
Recommended threads
- Login with google error, Error 400: redi...
Hi, when i login with Oauth2 , using createOAuth2Session( 'google', 'http://localhost:5173/', 'http://localhost:5173/' ); It give...
- Google login error: {"message":"Invalid ...
hi, im trying to use google login with account.createOAuth2Session( 'google', 'profevardilla.pages.dev', 'profevardilla.pages.dev'...
- Create owner team member with Server fun...
I understand that when creating a team with a function, the user that made the request will not be the owner so I think I have to add the user that did the requ...
