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.
Post History
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...
#1: Initial revision
How can I avoid frequent re-authentication when using Google Cloud Platform (GCP) (e.g., auto-renew, increase token expiry, another auth method)?
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: - https://redd.it/1kjhtgm - https://redd.it/1kjhtrk - https://serverfault.com/q/1180983/126950 - https://qr.ae/pAbvWi [1]: https://i.sstatic.net/65RR4vYB.png