fix #267
This commit is contained in:
@@ -2281,7 +2281,7 @@ class TokenProvider:
|
|||||||
def expired(self) -> bool:
|
def expired(self) -> bool:
|
||||||
""" """
|
""" """
|
||||||
return self.timestamp + (self.expires_in - TokenProvider.
|
return self.timestamp + (self.expires_in - TokenProvider.
|
||||||
token_expire_threshold) * 1000 < int(
|
token_expire_threshold) * 1000 * 1000 < int(
|
||||||
time.time_ns() / 1000)
|
time.time_ns() / 1000)
|
||||||
|
|
||||||
def has_scope(self, scope: str) -> bool:
|
def has_scope(self, scope: str) -> bool:
|
||||||
|
|||||||
Reference in New Issue
Block a user