Skip to content

Commit 1ba679b

Browse files
committed
Fix: deduplicate state checks
1 parent 4037231 commit 1ba679b

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

  • src/discord-cluster-manager/api

src/discord-cluster-manager/api/main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,6 @@ async def cli_auth(code: str, state: str = None):
117117
user_id = user_json.get("id")
118118
user_name = user_json.get("username")
119119

120-
if not state:
121-
raise HTTPException(status_code=400, detail="State parameter with CLI ID is required")
122-
123120
try:
124121
cli_id = base64.b64decode(state).decode("utf-8")
125122
except Exception as e:

0 commit comments

Comments
 (0)