Skip to content

Commit

Permalink
Support new version of rx (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
anders-kiaer authored Jun 6, 2024
1 parent c1d884f commit c0a8a00
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions webviz_config/_deployment/radix_cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import json
import time
import shutil
import pathlib
Expand Down Expand Up @@ -36,13 +35,7 @@ def logged_in() -> bool:
_trigger_token_aquisition(update_only=True)

config = pathlib.Path.home() / ".radix" / "config"

if config.is_file():
token_expiry_time = json.loads(config.read_text())["sessionConfig"]["expiresOn"]
if token_expiry_time > time.time():
return True

return False
return config.is_file()


def log_in() -> None:
Expand Down

0 comments on commit c0a8a00

Please sign in to comment.