Повторный вход в аккаунт, очистка кэша

This commit is contained in:
Халимов Рустам
2026-05-15 00:10:34 +03:00
parent 0b013def2e
commit 40589dbb75
21 changed files with 1732 additions and 309 deletions
@@ -57,6 +57,8 @@ Future<void> initDependencies() async {
dio.interceptors.add(InterceptorsWrapper(
onRequest: (options, handler) {
final token = prefs.getString('access_token');
// ignore: avoid_print
print('[DEBUG] Dio Request: ${options.path}, Token present: ${token != null}');
if (token != null) {
options.headers['Authorization'] = 'Bearer $token';
}