refactor: improvements

This commit is contained in:
cogwheel0
2025-09-24 10:52:15 +05:30
parent f6a1b6123b
commit b8c024d0b0
13 changed files with 294 additions and 132 deletions

View File

@@ -249,10 +249,9 @@ final apiTokenUpdaterProvider = Provider<void>((ref) {
ref.listen<String?>(authTokenProvider3, (previous, next) {
final api = ref.read(apiServiceProvider);
if (api != null) {
api.updateAuthToken(next ?? '');
foundation.debugPrint(
'DEBUG: Applied auth token to API (len=${next?.length ?? 0})',
);
api.updateAuthToken(next);
final length = next?.length ?? 0;
foundation.debugPrint('DEBUG: Applied auth token to API (len=$length)');
}
});
});