This commit is contained in:
碧舞すみほ 2024-04-21 09:56:52 +09:00 committed by GitHub
parent f56533f9b5
commit f28b51b6e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2281,7 +2281,7 @@ class TokenProvider:
def expired(self) -> bool:
""" """
return self.timestamp + (self.expires_in - TokenProvider.
token_expire_threshold) * 1000 < int(
token_expire_threshold) * 1000 * 1000 < int(
time.time_ns() / 1000)
def has_scope(self, scope: str) -> bool: