From 3f426bc05c5620e612a54e21fb6562e965ba24bd Mon Sep 17 00:00:00 2001 From: arithmetic1728 <58957152+arithmetic1728@users.noreply.github.com> Date: Fri, 10 Nov 2023 20:47:17 -0800 Subject: [PATCH] docs: update user cred doc (#1414) --- google/oauth2/credentials.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/google/oauth2/credentials.py b/google/oauth2/credentials.py index 4643fdbea..ae204b45a 100644 --- a/google/oauth2/credentials.py +++ b/google/oauth2/credentials.py @@ -54,8 +54,9 @@ class Credentials(credentials.ReadOnlyScoped, credentials.CredentialsWithQuotaProject): """Credentials using OAuth 2.0 access and refresh tokens. - The credentials are considered immutable. If you want to modify the - quota project, use :meth:`with_quota_project` or :: + The credentials are considered immutable except the tokens and the token + expiry, which are updated after refresh. If you want to modify the quota + project, use :meth:`with_quota_project` or :: credentials = credentials.with_quota_project('myproject-123')