stremio/apps/token-tray
Jos Vooges | STH c6eec07de5 Auto-refresh tokens based on server-tracked JWT expiry.
Tray polls refresh-due every 10 minutes and silently renews accounts within 90 minutes of expiry.
2026-09-23 00:12:03 +02:00
..
src Auto-refresh tokens based on server-tracked JWT expiry. 2026-09-23 00:12:03 +02:00
package.json Silent browser UI login for Viaplay and F1TV via Token Tray. 2026-09-22 23:54:10 +02:00
README.md Auto-refresh tokens based on server-tracked JWT expiry. 2026-09-23 00:12:03 +02:00
tsconfig.json Add Windows token-tray MVP for Viaplay session refresh. 2026-09-22 23:24:44 +02:00

Media Cluster Token Tray

Windows system-tray helper: stille browser-UI login voor Viaplay + F1TV (geen HTTP-login → geen cmd-CAPTCHA).

Admin

  1. Instellingen → Admin → Token Tray → genereer key + kopieer API URL
  2. Scripts → Viaplay / F1TV → account met e-mail + wachtwoord
  3. 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:

  1. Server onthoudt JWT-expiry per account
  2. Tray pollt elke 10 min GET /api/v1/agent/refresh-due
  3. Alleen als een token < 90 min geldig is (of ontbreekt): stille Chrome-login + push
  4. 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 + wachtwoorden
  • POST /api/v1/agent/viaplay/tokens
  • POST /api/v1/agent/f1tv/tokens