From e829897c5294a5d027d8f542b723bb8218822399 Mon Sep 17 00:00:00 2001 From: Carl Lundin <108372512+clundin25@users.noreply.github.com> Date: Tue, 20 Sep 2022 23:01:47 +0000 Subject: [PATCH] fix: Modify RefreshError exception to use gcloud ADC command. (#1149) --- google/oauth2/_reauth_async.py | 2 +- google/oauth2/reauth.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google/oauth2/_reauth_async.py b/google/oauth2/_reauth_async.py index 0276ddd0b..30b0b0b1e 100644 --- a/google/oauth2/_reauth_async.py +++ b/google/oauth2/_reauth_async.py @@ -307,7 +307,7 @@ async def refresh_grant( ): if not enable_reauth_refresh: raise exceptions.RefreshError( - "Reauthentication is needed. Please run `gcloud auth login --update-adc` to reauthenticate." + "Reauthentication is needed. Please run `gcloud auth application-default login` to reauthenticate." ) rapt_token = await get_rapt_token( diff --git a/google/oauth2/reauth.py b/google/oauth2/reauth.py index cbf1d7f09..2c32bda2a 100644 --- a/google/oauth2/reauth.py +++ b/google/oauth2/reauth.py @@ -332,7 +332,7 @@ def refresh_grant( ): if not enable_reauth_refresh: raise exceptions.RefreshError( - "Reauthentication is needed. Please run `gcloud auth login --update-adc` to reauthenticate." + "Reauthentication is needed. Please run `gcloud auth application-default login` to reauthenticate." ) rapt_token = get_rapt_token(