Merge branch 'reorg' of https://github.com/KometTeam/app into reorg

This commit is contained in:
endgame
2025-11-30 23:33:29 +03:00
8 changed files with 92 additions and 42 deletions

View File

@@ -146,21 +146,21 @@ extension ApiServiceAuth on ApiService {
if (currentAccount != null) {
authToken = currentAccount.token;
userId = currentAccount.userId;
print(
"Токен загружен из AccountManager: ${authToken!.substring(0, 20)}...",
);
// print(
// "Токен загружен из AccountManager: ${authToken!.substring(0, 20)}...",
// );
} else {
final prefs = await SharedPreferences.getInstance();
authToken = prefs.getString('authToken');
userId = prefs.getString('userId');
if (authToken != null) {
print(
"Токен загружен из SharedPreferences: ${authToken!.substring(0, 20)}...",
);
if (userId != null) {
print("UserID загружен из SharedPreferences: $userId");
}
}
// if (authToken != null) {
// print(
// "Токен загружен из SharedPreferences: ${authToken!.substring(0, 20)}...",
// );
// if (userId != null) {
// print("UserID загружен из SharedPreferences: $userId");
// }
// }
}
}
return authToken != null;