refresh the token when expired

This commit is contained in:
CREDO23 2025-08-21 01:09:13 +02:00
parent b0b6df0971
commit 9711af2b72
3 changed files with 27 additions and 26 deletions

View file

@ -13,6 +13,6 @@ class GoogleAuthCredentialsBase(BaseModel):
client_secret: str
@property
def is_expired(self) -> bool:
def expired(self) -> bool:
"""Check if the credentials have expired."""
return self.expiry <= datetime.now(UTC)