Expand description
Google Cloud credential retrieval and authentication handling.
Supports obtaining OAuth2 access tokens through multiple strategies:
- Explicitly supplied tokens (via flag or
NODE_AUTH_TOKENenvironment variable). - Google Application Default Credentials (ADC) via service accounts or user login.
- Active
gcloudCLI session fallback (gcloud auth print-access-token).
Functionsยง
- get_
credentials - Retrieves an OAuth2 access token for Google Cloud Artifact Registry.