Skip to content

The agent that grows with you

fix(auth): thread use_https into the native password-login PKCE clear

Ben Barclay53ab03dc4d40
diff --git a/hermes_cli/dashboard_auth/routes.py b/hermes_cli/dashboard_auth/routes.py
index 04832b35b72..d42165f867c 100644
--- a/hermes_cli/dashboard_auth/routes.py
+++ b/hermes_cli/dashboard_auth/routes.py
@@ -854,7 +854,7 @@ async def auth_password_login(request: Request, body: _PasswordLoginBody):
# this window" page. No session cookies: the desktop is not a
# browser session (mirrors the /auth/callback native branch).
resp = JSONResponse({"ok": True, "next": loopback})
- clear_pkce_cookie(resp, prefix=_prefix(request))
+ clear_pkce_cookie(resp, use_https=detect_https(request), prefix=_prefix(request))
return resp
expires_in = max(60, session.expires_at - int(time.time()))