Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit 3eac8c7

Browse files
committed
feat: Introduce granted scopes to credentials
1 parent a3d7bd6 commit 3eac8c7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

google_auth_oauthlib/helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ def credentials_from_session(session, client_config=None):
145145
client_id=client_config.get("client_id"),
146146
client_secret=client_config.get("client_secret"),
147147
scopes=session.scope,
148+
granted_scopes=session.token.get("scope")
148149
)
149150
credentials.expiry = datetime.datetime.utcfromtimestamp(session.token["expires_at"])
150151
return credentials

0 commit comments

Comments
 (0)