TF-886 Clear AuthenticationInfo
This commit is contained in:
@@ -15,4 +15,8 @@ class AuthenticationInfoCacheManager {
|
||||
Future<AuthenticationInfoCache?> getAuthenticationInfoStored() {
|
||||
return _authenticationInfoCacheClient.getItem(AuthenticationInfoCache.keyCacheValue);
|
||||
}
|
||||
|
||||
Future<void> removeAuthenticationInfo() {
|
||||
return _authenticationInfoCacheClient.deleteItem(AuthenticationInfoCache.keyCacheValue);
|
||||
}
|
||||
}
|
||||
@@ -32,16 +32,6 @@ class CredentialRepositoryImpl extends CredentialRepository {
|
||||
await sharedPreferences.remove(LoginConstant.keyBaseUrl);
|
||||
}
|
||||
|
||||
@override
|
||||
Future removePassword() async {
|
||||
await sharedPreferences.remove(LoginConstant.keyPassword);
|
||||
}
|
||||
|
||||
@override
|
||||
Future removeUserName() async {
|
||||
await sharedPreferences.remove(LoginConstant.keyUserName);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<UserProfile> getUserProfile() async {
|
||||
final json = sharedPreferences.getString(LoginConstant.keyUserProfile) ?? '';
|
||||
@@ -70,4 +60,9 @@ class CredentialRepositoryImpl extends CredentialRepository {
|
||||
Future<AuthenticationInfoCache?> getAuthenticationInfoStored() {
|
||||
return _authenticationInfoCacheManager.getAuthenticationInfoStored();
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> removeAuthenticationInfo() {
|
||||
return _authenticationInfoCacheManager.removeAuthenticationInfo();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user