I am trying to access and update my firebase database from GOOGLE cloud function but it is not working.
I have written a cloud function in which I have initialized firebase-admin.
I have to provide service_account to initialize admin.
I am initializing my firebase app as
admin.initializeApp({
credential: admin.credential.cert(service_account),
databaseURL: "",
databaseAuthVariableOverride: {
uid: ""
}
});
I don't have my service account path in GOOGLE cloud functions.
Is there any method to access firebase from GOOGLE cloud functions?
Thanks