This is a demo repo showing off the usage of my OAuth2 module here. The goal is to easily authenticate with the Google Cloud HTTP API when using the OAuth2 flow for a service account from within a Cloudflare Worker.
The deployment deploys to Cloudflare Workers using the wrangler
CLI tool.
wrangler login
wrangler publish
Note: Ensure you've set the environment variable GCP_SERVICE_ACCOUNT
with your service account JSON key downloaded from Google.