Remove async function for SessionStorageManager

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-07-16 10:42:49 +07:00
committed by Dat H. Pham
parent ee39f16102
commit 6f87058459
3 changed files with 12 additions and 12 deletions
@@ -140,8 +140,8 @@ class AuthenticationOIDCDataSourceImpl extends AuthenticationOIDCDataSource {
@override
Future<String> getAuthenticationInfo() {
return Future.sync(() async {
return await _sessionStorageManager.get(
return Future.sync(() {
return _sessionStorageManager.get(
OIDCConstant.authResponseKey,
);
}).catchError(_cacheExceptionThrower.throwException);
@@ -156,8 +156,8 @@ class AuthenticationOIDCDataSourceImpl extends AuthenticationOIDCDataSource {
@override
Future<void> removeAuthDestinationUrl() {
return Future.sync(() async {
return await _sessionStorageManager.remove(
return Future.sync(() {
return _sessionStorageManager.remove(
LoginConstants.AUTH_DESTINATION_KEY,
);
}).catchError(_cacheExceptionThrower.throwException);