Skip to content

Commit b7d8f61

Browse files
Update external_oauth_provider.py
avoided depreciated date time format
1 parent 75eb8fa commit b7d8f61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

auth/external_oauth_provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async def verify_token(self, token: str) -> Optional[AccessToken]:
8686
token_uri="https://oauth2.googleapis.com/token",
8787
client_id=self._client_id,
8888
client_secret=self._client_secret,
89-
expiry=datetime.utcnow() + timedelta(seconds=SESSION_TIME),
89+
expiry=datetime.now(timezone.utc) + timedelta(seconds=SESSION_TIME),
9090
)
9191

9292
# Validate token by calling userinfo API

0 commit comments

Comments
 (0)