Getting GCP access token from a service account key
Use your service account's key JSON file to get an access token to call Google APIs.
Good for seeing how things work, including the creation of JWT token.
To create a JWT token, you can replace
create-jwt-token.sh script with tools like step.
If you just want to get an access token for a service account,