security: remove VITE_TLSYNC_SECRET from frontend bundle
- Remove import.meta.env.VITE_TLSYNC_SECRET from syncService.ts - Add optional token parameter to SyncConnectionOptions interface (caller passes token fetched from API, not a baked-in secret) - Add clientEnvBlocklist in vite.config.ts to prevent sensitive VITE_ env vars (TLSYNC_SECRET, MICROSOFT_CLIENT_SECRET*) from reaching bundle - Remove VITE_TLSYNC_SECRET from .env.example - Token auth for TLSync now handled server-side or via API endpoint Ref: t_99d166c6
This commit is contained in:
@@ -27,7 +27,6 @@ VITE_SUPABASE_ANON_KEY=your-supabase-anon-key
|
||||
# TLSync (TLDraw Sync) Configuration
|
||||
# =============================================================================
|
||||
VITE_TLSYNC_URL=https://app.classroomcopilot.ai/tldraw
|
||||
VITE_TLSYNC_SECRET=your-tlsync-secret
|
||||
|
||||
# =============================================================================
|
||||
# WhisperLive (Transcription) Configuration
|
||||
|
||||
Reference in New Issue
Block a user