Update external_oauth_provider.py
avoided depreciated date time format
This commit is contained in:
@@ -86,7 +86,7 @@ class ExternalOAuthProvider(GoogleProvider):
|
|||||||
token_uri="https://oauth2.googleapis.com/token",
|
token_uri="https://oauth2.googleapis.com/token",
|
||||||
client_id=self._client_id,
|
client_id=self._client_id,
|
||||||
client_secret=self._client_secret,
|
client_secret=self._client_secret,
|
||||||
expiry=datetime.utcnow() + timedelta(seconds=SESSION_TIME),
|
expiry=datetime.now(timezone.utc) + timedelta(seconds=SESSION_TIME),
|
||||||
)
|
)
|
||||||
|
|
||||||
# Validate token by calling userinfo API
|
# Validate token by calling userinfo API
|
||||||
|
|||||||
Reference in New Issue
Block a user