From cb7866adb9dceffc3aedbf3250b805cb4788d6ef Mon Sep 17 00:00:00 2001 From: Dat PHAM HOANG Date: Tue, 9 Jan 2024 16:05:55 +0700 Subject: [PATCH] [Hot-fix] Need to await for handling refresh token (cherry picked from commit e9a43fc010b66d5c6ca9a38ee593dda97da8dd9f) --- .../login/data/network/config/authorization_interceptors.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/features/login/data/network/config/authorization_interceptors.dart b/lib/features/login/data/network/config/authorization_interceptors.dart index 59222915e3..3e7d611b44 100644 --- a/lib/features/login/data/network/config/authorization_interceptors.dart +++ b/lib/features/login/data/network/config/authorization_interceptors.dart @@ -94,9 +94,9 @@ class AuthorizationInterceptors extends QueuedInterceptorsWrapper { log('AuthorizationInterceptors::onError:>> _validateToRefreshToken'); if (PlatformInfo.isIOS) { - _handleRefreshTokenOnIOSPlatform(); + await _handleRefreshTokenOnIOSPlatform(); } else { - _handleRefreshTokenOnOtherPlatform(); + await _handleRefreshTokenOnOtherPlatform(); } if (extraInRequest.containsKey(FileUploader.uploadAttachmentExtraKey)) {