v2.45.2 — JWT-Auth für yt-proxy: X-API-Key komplett entfernt, Bearer-Token überall
This commit is contained in:
@@ -10,7 +10,7 @@ import '../models/song.dart';
|
||||
import '../database/db_helper.dart';
|
||||
import '../utils/audio_validator.dart';
|
||||
import 'melo_logger.dart';
|
||||
import '../config/app_config.dart';
|
||||
import 'auth_service.dart';
|
||||
import '../main.dart'; // für notificationsPlugin
|
||||
import '../utils/sanitize.dart';
|
||||
|
||||
@@ -25,8 +25,7 @@ class DownloadService extends ChangeNotifier {
|
||||
DownloadService._();
|
||||
|
||||
static const String _proxyBasisUrl = 'https://yt.baka-net.de';
|
||||
static String get _apiKey => AppConfig.ytProxyApiKey;
|
||||
static Map<String, String> get _authHeader => {'X-API-Key': _apiKey};
|
||||
static Map<String, String> get _authHeader => AuthService().authHeader;
|
||||
|
||||
static const String _channelId = 'de.baka.melo.downloads';
|
||||
static const int _notifyProgressId = 100;
|
||||
|
||||
Reference in New Issue
Block a user