I am authenticating calls to a private API running on GCP behind GCP Cloud Endpoints as described here.
It is working ok, but for each call I am using GoogleSignInAuthentication.idToken that contains user's profile information and generally too much information for access.
GoogleSignInAuthentication.authToken and GoogleSignInAccount.authHeaders are not in JWT format and are being rejected by Endpoints.
Is there a way to get access token in JWT format in google_sing_in? Or maybe it is ok to use the id token for each call?