TF-4136 security(sentry): scrub sensitive headers without mutating HTTP payloads

This commit is contained in:
dab246
2025-12-15 13:52:35 +07:00
committed by Dat H. Pham
parent fdda936ac2
commit 95534e28e0
5 changed files with 57 additions and 11 deletions
+2 -3
View File
@@ -1,5 +1,4 @@
import 'package:core/utils/app_logger.dart';
import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
class EnvLoader {
@@ -21,7 +20,7 @@ class EnvLoader {
static Future<void> loadFcmConfigFileToEnv({
Map<String, String>? currentMapEnvData,
VoidCallback? onCallBack,
Future<void> Function()? onCallBack,
}) async {
try {
await dotenv.load(
@@ -30,7 +29,7 @@ class EnvLoader {
);
} catch (e) {
logWarning('EnvLoader::loadFcmConfigFileToEnv: Exception = $e');
onCallBack?.call();
await onCallBack?.call();
}
}