TF-886 Clear AuthenticationInfo
This commit is contained in:
@@ -8,10 +8,6 @@ abstract class CredentialRepository {
|
||||
|
||||
Future<Uri> getBaseUrl();
|
||||
|
||||
Future removeUserName();
|
||||
|
||||
Future removePassword();
|
||||
|
||||
Future saveUserProfile(UserProfile userProfile);
|
||||
|
||||
Future removeUserProfile();
|
||||
@@ -21,4 +17,6 @@ abstract class CredentialRepository {
|
||||
Future<void> storeAuthenticationInfo(AuthenticationInfoCache authenticationInfoCache);
|
||||
|
||||
Future<AuthenticationInfoCache?> getAuthenticationInfoStored();
|
||||
|
||||
Future<void> removeAuthenticationInfo();
|
||||
}
|
||||
@@ -14,8 +14,7 @@ class DeleteCredentialInteractor {
|
||||
try {
|
||||
await Future.wait([
|
||||
credentialRepository.removeBaseUrl(),
|
||||
credentialRepository.removeUserName(),
|
||||
credentialRepository.removePassword(),
|
||||
credentialRepository.removeAuthenticationInfo(),
|
||||
credentialRepository.removeUserProfile(),
|
||||
]);
|
||||
return Right(DeleteCredentialSuccess());
|
||||
|
||||
Reference in New Issue
Block a user