This commit is contained in:
2025-10-28 23:46:07 +07:00
parent 73b77c27de
commit f32e1c16fb
10 changed files with 333 additions and 142 deletions

View File

@@ -50,15 +50,9 @@ class AuthRepositoryImpl implements AuthRepository {
@override
Future<Either<Failure, void>> logout() async {
try {
// Call remote data source to logout (optional - can fail silently)
try {
await remoteDataSource.logout();
} catch (e) {
// Ignore remote logout errors, still clear local data
}
// Clear all local authentication data
await secureStorage.clearAll();
// Just clear access token from secure storage
// No API call needed
await secureStorage.clearTokens();
return const Right(null);
} catch (e) {