mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-03 04:42:39 +02:00
refresh the token when expired
This commit is contained in:
parent
b0b6df0971
commit
9711af2b72
3 changed files with 27 additions and 26 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue