Return token data from handle_token

Notes for dev
This commit is contained in:
simonwt 2026-04-16 21:08:54 +01:00
parent 89fc8706cb
commit cd1f0a2ae3
5 changed files with 55 additions and 6 deletions

View file

@ -170,9 +170,11 @@ class APIClient(BaseModel):
# Get a new one if we don't have one or if the existing one is expired
if not self.is_token_valid():
tokendata = self.sign_in()
token_data = self.sign_in()
with open(token_data_path, "w") as f:
json.dump(tokendata, f, indent=2)
json.dump(token_data, f, indent=2)
return token_data
def run_job(self, job_function, *args, **kwargs):
"""