mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-10-01 20:42:50 +08:00
apiFetch called window.fetch which installApiClient had reassigned to call apiFetch — every request blew the stack. Capture the native fetch at module load (before any wrap) and use it inside apiFetch. Symptom: first-run / login redirect never fires because the router guard hangs on session.refresh(). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>