Skip to content

Commit 059fd35

Browse files
authored
fix: Modify RefreshError exception to use gcloud ADC command. (#1149)
1 parent 055f155 commit 059fd35

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

google/oauth2/_reauth_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ async def refresh_grant(
307307
):
308308
if not enable_reauth_refresh:
309309
raise exceptions.RefreshError(
310-
"Reauthentication is needed. Please run `gcloud auth login --update-adc` to reauthenticate."
310+
"Reauthentication is needed. Please run `gcloud auth application-default login` to reauthenticate."
311311
)
312312

313313
rapt_token = await get_rapt_token(

google/oauth2/reauth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def refresh_grant(
332332
):
333333
if not enable_reauth_refresh:
334334
raise exceptions.RefreshError(
335-
"Reauthentication is needed. Please run `gcloud auth login --update-adc` to reauthenticate."
335+
"Reauthentication is needed. Please run `gcloud auth application-default login` to reauthenticate."
336336
)
337337

338338
rapt_token = get_rapt_token(

0 commit comments

Comments
 (0)