MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / is_websocket_authenticated

Function is_websocket_authenticated

src/web/auth.py:86–89  ·  view source on GitHub ↗
(websocket: WebSocket)

Source from the content-addressed store, hash-verified

84
85
86def is_websocket_authenticated(websocket: WebSocket) -> bool:
87 cookie = websocket.cookies.get("webui_auth")
88 expected = get_expected_auth_token()
89 return bool(cookie) and secrets.compare_digest(cookie, expected)
90
91
92def websocket_auth_failure() -> Tuple[int, str]:

Callers 2

task_websocketFunction · 0.85
batch_websocketFunction · 0.85

Calls 2

get_expected_auth_tokenFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected