Spaces:
Paused

somratpro Claude Sonnet 4.6 commited on
Commit
b8fda45
·
1 Parent(s): aa128fa

fix(terminal): inject GATEWAY_TOKEN into JupyterLab proxy to skip double login prompt

Browse files

health-server.js reads JUPYTER_TOKEN at process start, but start_jupyter()
only exports it later — so the env var is empty and no auth header is
injected, causing JupyterLab to show its own login screen after the user
already authenticated with GATEWAY_TOKEN.

Fix: fall back to API_SERVER_KEY (== GATEWAY_TOKEN), which is exactly what
JupyterLab was started with. User authenticates once; no second prompt.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

1 file changed +5 -1
health-server.js+5-1