Skip to content

Commit

Permalink
docs: make input of accounts token better
Browse files Browse the repository at this point in the history
  • Loading branch information
dantetemplar committed Nov 21, 2024
1 parent 70e8ea1 commit 19040a5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/api/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ def check_and_prompt_api_jwt_token():
Prompt the user to set it if it is missing, allow them to input it,
and open the required URL in the default web browser.
"""
if not SETTINGS_FILE.exists():
print("❌ No `settings.yaml` found. Skipping JWT token check.")
return

settings = get_settings()
accounts = settings.get("accounts", {})
api_jwt_token = accounts.get("api_jwt_token")
Expand All @@ -69,9 +65,8 @@ def check_and_prompt_api_jwt_token():
print(f" ➡️ Opening the following URL to generate a token:\n {ACCOUNTS_TOKEN_URL}")

webbrowser.open(ACCOUNTS_TOKEN_URL)
print(" 🔑 Please paste the generated token below:")

token = input(" Enter the token here (or press Enter to skip):\n>").strip()
token = input(" 🔑 Please paste the generated token below (or press Enter to skip):\n > ").strip()

if token:
try:
Expand Down

0 comments on commit 19040a5

Please sign in to comment.