Merge pull request 'splash_scren' (#156) from splash_scren into main

Reviewed-on: https://repo.ravanertebat.com/TM/tm_app/pulls/156
This commit is contained in:
a.ghabeli
2025-09-23 13:38:01 +03:30
14 changed files with 263 additions and 12 deletions
+9
View File
@@ -113,4 +113,13 @@ class AuthService {
return result;
}
Future<Result<bool>> checkIsLoggedIn() async {
final prefs = await SharedPreferences.getInstance();
final token = prefs.getString('bearer');
if (token == null) {
return const Result.ok(false);
}
return const Result.ok(true);
}
}