TF-624 Implement logout oidc on browser
This commit is contained in:
@@ -99,15 +99,11 @@ class AccountCacheClient extends HiveCacheClient<AccountCache> {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<Box<AccountCache>> openBox() {
|
||||
return Future.sync(() async {
|
||||
if (Hive.isBoxOpen(tableName)) {
|
||||
return Hive.box<AccountCache>(tableName);
|
||||
}
|
||||
return await Hive.openBox<AccountCache>(tableName);
|
||||
}).catchError((error) {
|
||||
throw error;
|
||||
});
|
||||
Future<Box<AccountCache>> openBox() async {
|
||||
if (Hive.isBoxOpen(tableName)) {
|
||||
return Hive.box<AccountCache>(tableName);
|
||||
}
|
||||
return Hive.openBox<AccountCache>(tableName);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
@@ -11,15 +11,11 @@ class EmailCacheClient extends HiveCacheClient<EmailCache> {
|
||||
String get tableName => 'EmailCache';
|
||||
|
||||
@override
|
||||
Future<Box<EmailCache>> openBox() {
|
||||
return Future.sync(() async {
|
||||
if (Hive.isBoxOpen(tableName)) {
|
||||
return Hive.box<EmailCache>(tableName);
|
||||
}
|
||||
return await Hive.openBox<EmailCache>(tableName);
|
||||
}).catchError((error) {
|
||||
throw error;
|
||||
});
|
||||
Future<Box<EmailCache>> openBox() async {
|
||||
if (Hive.isBoxOpen(tableName)) {
|
||||
return Hive.box<EmailCache>(tableName);
|
||||
}
|
||||
return Hive.openBox<EmailCache>(tableName);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
@@ -9,15 +9,11 @@ class MailboxCacheClient extends HiveCacheClient<MailboxCache> {
|
||||
String get tableName => 'MailboxCache';
|
||||
|
||||
@override
|
||||
Future<Box<MailboxCache>> openBox() {
|
||||
return Future.sync(() async {
|
||||
if (Hive.isBoxOpen(tableName)) {
|
||||
return Hive.box<MailboxCache>(tableName);
|
||||
}
|
||||
return await Hive.openBox<MailboxCache>(tableName);
|
||||
}).catchError((error) {
|
||||
throw error;
|
||||
});
|
||||
Future<Box<MailboxCache>> openBox() async {
|
||||
if (Hive.isBoxOpen(tableName)) {
|
||||
return Hive.box<MailboxCache>(tableName);
|
||||
}
|
||||
return Hive.openBox<MailboxCache>(tableName);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
@@ -88,15 +88,11 @@ class RecentSearchCacheClient extends HiveCacheClient<RecentSearchCache> {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<Box<RecentSearchCache>> openBox() {
|
||||
return Future.sync(() async {
|
||||
if (Hive.isBoxOpen(tableName)) {
|
||||
return Hive.box<RecentSearchCache>(tableName);
|
||||
}
|
||||
return await Hive.openBox<RecentSearchCache>(tableName);
|
||||
}).catchError((error) {
|
||||
throw error;
|
||||
});
|
||||
Future<Box<RecentSearchCache>> openBox() async {
|
||||
if (Hive.isBoxOpen(tableName)) {
|
||||
return Hive.box<RecentSearchCache>(tableName);
|
||||
}
|
||||
return Hive.openBox<RecentSearchCache>(tableName);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
@@ -9,15 +9,11 @@ class StateCacheClient extends HiveCacheClient<StateCache> {
|
||||
String get tableName => 'StateCache';
|
||||
|
||||
@override
|
||||
Future<Box<StateCache>> openBox() {
|
||||
return Future.sync(() async {
|
||||
if (Hive.isBoxOpen(tableName)) {
|
||||
return Hive.box<StateCache>(tableName);
|
||||
}
|
||||
return await Hive.openBox<StateCache>(tableName);
|
||||
}).catchError((error) {
|
||||
throw error;
|
||||
});
|
||||
Future<Box<StateCache>> openBox() async {
|
||||
if (Hive.isBoxOpen(tableName)) {
|
||||
return Hive.box<StateCache>(tableName);
|
||||
}
|
||||
return Hive.openBox<StateCache>(tableName);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user