Tray polls refresh-due every 10 minutes and silently renews accounts within 90 minutes of expiry. |
||
|---|---|---|
| .. | ||
| src | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
Media Cluster Token Tray
Windows system-tray helper: stille browser-UI login voor Viaplay + F1TV (geen HTTP-login → geen cmd-CAPTCHA).
Admin
- Instellingen → Admin → Token Tray → genereer key + kopieer API URL
- Scripts → Viaplay / F1TV → account met e-mail + wachtwoord
- Tokens plakken is optioneel (tray vult die)
Tray
cd apps\token-tray
pnpm.cmd install
pnpm.cmd exec playwright install chromium
pnpm.cmd run build
pnpm.cmd run start
Auto-modus (hands-off)
Zolang de tray op de Windows-PC draait:
- Server onthoudt JWT-expiry per account
- Tray pollt elke 10 min
GET /api/v1/agent/refresh-due - Alleen als een token < 90 min geldig is (of ontbreekt): stille Chrome-login + push
- Jij hoeft niets te klikken — alleen PC/tray aan laten
Handmatig blijft beschikbaar: Nu checken / Alles vernieuwen.
API (tray-key)
GET /api/v1/agent/accounts— accounts + wachtwoordenPOST /api/v1/agent/viaplay/tokensPOST /api/v1/agent/f1tv/tokens