fix
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user