refresh-google-tokens

Refresh gcloud CLI and ADC authentication tokens for Google Cloud.

Updated Mar 24, 2026
One-click install
npx skills add https://github.com/Oruga420/claude-code-skills --skill refresh-google-tokens
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refresh-google-tokens
Source: https://github.com/Oruga420/claude-code-skills/tree/main/refresh-google-tokens
Command: npx skills add https://github.com/Oruga420/claude-code-skills --skill refresh-google-tokens

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Refresh Google Cloud authentication for both the gcloud CLI and Application Default Credentials (ADC) in one streamlined workflow to prevent token expiry issues during cloud operations and Python API usage.

Core Features & Use Cases

  • Refresh gcloud CLI authentication with gcloud login to enable commands like gcloud functions deploy.
  • Refresh ADC credentials with gcloud auth application-default login so Python libraries can access Google Cloud APIs.
  • Validate that both authentication methods are active and ready for immediate use, and provide guidance when re-authentication is needed in future sessions.

Quick Start

Run the token refresh workflow to refresh both gcloud CLI authentication and ADC and verify the tokens are active.

Frequently Asked Questions about refresh-google-tokens

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix gcloud UNAUTHENTICATED errors when my authentication token expires?

To fix gcloud UNAUTHENTICATED errors, refresh your Google Cloud tokens by running gcloud auth login and gcloud auth application-default login. This updates both CLI and ADC credentials, restoring access for cloud operations.

How do I refresh Application Default Credentials for Python Google Cloud API scripts?

Refresh Application Default Credentials by running gcloud auth application-default login. This updates local ADC tokens so Python libraries can successfully authenticate and access Google Cloud APIs without expiry interruptions.

Why does gcloud CLI say Reauthentication is needed during a cloud functions deploy?

Gcloud CLI requires reauthentication when your session token expires. Run gcloud auth login to generate a fresh token, verify your active account, and resume executing commands like gcloud functions deploy.

Can I refresh both gcloud CLI and ADC tokens in one step?

Yes, you can refresh both gcloud CLI and ADC tokens in one workflow by sequentially executing gcloud auth login and gcloud auth application-default login, then validating that both authentication methods are active.

How do I verify my active Google Cloud account after refreshing tokens?

Verify your active Google Cloud account after refreshing tokens by checking the authenticated session. Confirm that the gcloud CLI recognizes the active account and that ADC tokens are usable for Python API access.