[Hot-fix] Need to await for handling refresh token

(cherry picked from commit e9a43fc010b66d5c6ca9a38ee593dda97da8dd9f)
This commit is contained in:
Dat PHAM HOANG
2024-01-09 16:05:55 +07:00
committed by Dat H. Pham
parent f71192ffa9
commit cb7866adb9
@@ -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)) {