TF-886 Sync delete token oidc and clear cache

This commit is contained in:
dab246
2022-09-07 11:54:53 +07:00
committed by Dat H. Pham
parent e255ea0b61
commit 34f99f38e5
18 changed files with 41 additions and 46 deletions
@@ -31,4 +31,8 @@ class TokenOidcCacheManager {
log('TokenOidcCacheManager::persistOneTokenOidc(): token: ${tokenOIDC.token}');
await _tokenOidcCacheClient.insertItem(tokenOIDC.tokenIdHash, tokenOIDC.toTokenOidcCache());
}
Future<void> deleteTokenOidc() async {
await _tokenOidcCacheClient.clearAllData();
}
}