A simple authenticator to generate tokens for the Firebase Cloud Messaging API (V1) and other cloud services using the service account JSON file.
https://firebase.google.com/docs/cloud-messaging/auth-server
Requests sent to FCM from your app server or trusted environment must be authorized. Note these important differences between the deprecated legacy HTTP API and HTTP v1 API authorization:
Unless you are using the Admin SDK, which handle authorization automatically, you'll need to mint the access token and add it to send requests.
Use your Firebase credentials together with the Google Auth Library to retrieve a short-lived OAuth 2.0 access token