v2.45.2 — JWT-Auth für yt-proxy: X-API-Key komplett entfernt, Bearer-Token überall
This commit is contained in:
@@ -36,9 +36,7 @@ class CloudService {
|
||||
|
||||
Map<String, String> get _authHeader {
|
||||
final token = AuthService().token;
|
||||
final headers = <String, String>{
|
||||
'X-API-Key': AppConfig.ytProxyApiKey,
|
||||
};
|
||||
final headers = <String, String>{};
|
||||
if (token != null && token.isNotEmpty) {
|
||||
headers['Authorization'] = 'Bearer $token';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user