Files
furumi-ng/furumi-node-player
Ultradesu d6dd046fad feat(node-player): use Service Worker for auth, enable streaming playback
Add a Service Worker that intercepts /api/* requests and injects the
Bearer token. This allows <audio> and <img> elements to use direct
URLs instead of downloading entire files as blobs first.

- Audio now streams progressively (no full download before playback)
- Cover art loads via regular <img src> (SW adds auth header)
- Remove blob-based preloadStream, fetchCoverBlob, useCoverUrl hook
- Register SW in main.tsx, token synced via postMessage

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 17:30:17 +01:00
..
2026-03-19 15:47:21 +03:00

auth-app

Проект состоит из двух частей:

  • client - Vite + React + TypeScript
  • server - Express + TypeScript + OIDC авторизация

Запуск

  1. Скопируй server/.env.example в server/.env и заполни OIDC параметры.
    • Если нужно запустить без авторизации, поставь DISABLE_AUTH=true (OIDC параметры тогда не требуются).
  2. В одном терминале:
    • cd server
    • npm run dev
  3. В другом терминале:
    • cd client
    • npm run dev

Клиент откроется на http://localhost:5173, сервер на http://localhost:3001.