One-time YouTube Data API setup (same Google Cloud project is fine).
1. In Google Cloud Console
- Enable YouTube Data API v3.
- OAuth consent screen → add scopes
youtube.upload,youtube.readonly, andyt-analytics.readonly(views + learning-loop stats) → add yourself as a test user. Also enable YouTube Analytics API on the same project. - Credentials → OAuth client ID → Web application.
- Authorized redirect URI — add exactly:
https://server.tail0bb6ef.ts.net/auth/youtube/callback - Copy Client ID and Client secret below.