Skip to content

Commit

Permalink
Enlarge the token valid time (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx authored Feb 24, 2025
1 parent 225dfa8 commit ea0db77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utilix/rundb.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ def new_token(self):
def is_valid(self):
# TODO do an API call for this instead?
diff = datetime.datetime.now().timestamp() - self.creation_time
return diff < 24 * 60 * 60
# https://github.com/XENONnT/xenon_runsDB_api/blob/de29810c76d0c7338922f62e641a1253c3c89872/config/api_server_config.json#L16 # noqa
return diff < 48 * 60 * 60

@property
def json(self):
Expand Down

0 comments on commit ea0db77

Please sign in to comment.