Closed jansgescheit closed 3 years ago
While it's not documented on purpose, it's possible with setting the environment variable FIREBASE_CREDENTIALS
with the minified output of the JSON file. You can create it, for example, with jq
and the following command
$ jq -c . < /path/to/service_account.json
@jeromegamez thanks for the hint, i could have guessed that too. I put the content of the service_account.json to that environment. Works like a charm!
Is it possible to get the firebase service credentials not from a json file but from an environment or as Firebase offers as a server auth token?
Like here https://github.com/laravel-notification-channels/fcm/tree/v1#setting-up-the-fcm-service
My problem ist that i can easily set environment in my deployment but not a file.