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(