Skip to content

Commit

Permalink
fix: Modify RefreshError exception to use gcloud ADC command. (#1149)
Browse files Browse the repository at this point in the history
  • Loading branch information
clundin25 committed Sep 20, 2022
1 parent 055f155 commit 059fd35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion google/oauth2/_reauth_async.py
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion google/oauth2/reauth.py
Expand Up @@ -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(
Expand Down

0 comments on commit 059fd35

Please sign in to comment.