Check if the device code is still pending authorization.
(self)
| 67 | return now > expires_at |
| 68 | |
| 69 | def is_pending(self) -> bool: |
| 70 | """Check if the device code is still pending authorization.""" |
| 71 | return self.status == DeviceCodeStatus.PENDING.value and not self.is_expired() |
| 72 | |
| 73 | def is_authorized(self) -> bool: |
| 74 | """Check if the device code has been authorized.""" |