When I use the Database Secret it will generate an authentication token that is usable client-side to make calls to Firebase, but for some reason an access token generated by a service account with OAuth2 doesn't make a valid authentication token.
I have also posted an issue here on StackOverflow with my code based on the tutorials mentioned in the readme.
As a side note, I love your work! It has helped me learn a lot about GAS over the years. Thank You!
This was all me! I updated my StackOverflow with the problem. I was trying to use an old version of the API which was mentioned in the tutorial but doesn't work.
I am having trouble and have narrowed down the issue to the auth token generated by
.createAuthToken()
.When I use the Database Secret it will generate an authentication token that is usable client-side to make calls to Firebase, but for some reason an access token generated by a service account with OAuth2 doesn't make a valid authentication token.
I have also posted an issue here on StackOverflow with my code based on the tutorials mentioned in the readme.
As a side note, I love your work! It has helped me learn a lot about GAS over the years. Thank You!