TF-624 Implement logout oidc on browser

This commit is contained in:
dab246
2022-06-07 20:53:09 +07:00
committed by Dat H. Pham
parent dcaa340fa1
commit 9c9e12dedc
13 changed files with 86 additions and 72 deletions
@@ -97,15 +97,11 @@ class TokenOidcCacheClient extends HiveCacheClient<TokenOidcCache> {
}
@override
Future<Box<TokenOidcCache>> openBox() {
return Future.sync(() async {
if (Hive.isBoxOpen(tableName)) {
return Hive.box<TokenOidcCache>(tableName);
}
return await Hive.openBox<TokenOidcCache>(tableName);
}).catchError((error) {
throw error;
});
Future<Box<TokenOidcCache>> openBox() async {
if (Hive.isBoxOpen(tableName)) {
return Hive.box<TokenOidcCache>(tableName);
}
return Hive.openBox<TokenOidcCache>(tableName);
}
@override