From 4217c541b9cd88687141e77e39858768641ae4fe Mon Sep 17 00:00:00 2001 From: HyungJoon Date: Sat, 7 Dec 2024 18:52:26 +0900 Subject: [PATCH] fix: BaseConnect Error --- client-app/lib/core/provider/base_connect.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client-app/lib/core/provider/base_connect.dart b/client-app/lib/core/provider/base_connect.dart index 8faff8b..168a5dc 100644 --- a/client-app/lib/core/provider/base_connect.dart +++ b/client-app/lib/core/provider/base_connect.dart @@ -120,8 +120,9 @@ abstract class BaseConnect extends GetConnect { String useBearerToken = request.headers["useBearerToken"]!; if (((statusCodeOrErrorCode != 40100 && - statusCodeOrErrorCode.toString().startsWith("401")) || - statusCodeOrErrorCode == 40402)) { + statusCodeOrErrorCode.toString().startsWith("401")) || + statusCodeOrErrorCode == 40402) && + useBearerToken == "false") { await StorageFactory.systemProvider.deallocateTokens(); Get.snackbar(