Welcome to the Power Users community on Codidact!
Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.
How can I avoid frequent re-authentication when using Google Cloud Platform (GCP) (e.g., auto-renew, increase token expiry, another auth method)?
+0
−1
I use Google Cloud Platform (GCP) to access the Vertex AI API. I run:
gcloud auth application-default login --no-launch-browser
to get an authorization code:
However, it expires after 1 or 2 hours, so I need to re-authenticate constantly. How can I avoid that? E.g., increase the expiry time, authenticate automatically, or authenticate differently in such a way I don't need an authorization code.
Crossposts:
0 comment threads