True if token is not expired, not used, and not invalidated.
(self)
| 192 | |
| 193 | @property |
| 194 | def is_valid(self) -> bool: |
| 195 | """True if token is not expired, not used, and not invalidated.""" |
| 196 | if self.used: |
| 197 | return False |
| 198 | if self.invalidated_at is not None: |
| 199 | return False |
| 200 | if self.is_expired: |
| 201 | return False |
| 202 | return True |
| 203 | |
| 204 | def check_scope(self, tool: str, params: dict) -> ScopeCheckResult: |
| 205 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected