in modular_cli/service/utils.py [0:0]
def is_expired(self) -> bool:
p = self.payload
if not p:
return True
exp = p.get('exp')
if not exp:
return False
return exp < time.time() + self._exp_threshold