Google OAuth2 FCM http v1 with Elixir

I am able to manually generate bearer access_token from Google OAuth playground in order to authenticate and send notifications via the Firebase Cloud Messaging platform.
Automating this process has been quite challenging.

I have been trying to use elixir_auth_google for this activity, but it has been difficult for me because it appears to be more tailored towards Phoenix, based on the documentation I have read so far.

I would be grateful for any assistance on the right steps to take in achieving my goal of automatically generating the bearer tokens.

I have already generated a private key json file and gone ahead to set GOOGLE_APPLICATION_CREDENTIALS environment variable.

Any help would be most appreciated.

Thank you.


1 Like