Adjust integrity expiring logic
This commit is contained in:
1 parent
fee022b5a4
commit
2881cf0ad5
1 file changed
+2
-2
@@ -76,8 +76,8 @@ class _AuthState:
|
||||
@property
|
||||
def integrity_expired(self) -> bool:
|
||||
return (
|
||||
hasattr(self, "integrity_expires")
|
||||
and datetime.now(timezone.utc) >= self.integrity_expires
|
||||
not hasattr(self, "integrity_expires")
|
||||
or datetime.now(timezone.utc) >= self.integrity_expires
|
||||
)
|
||||
|
||||
def _hasattrs(self, *attrs: str) -> bool:
|
||||
|
||||
Reference in new issue
Block a user