Skip to content

Commit

Permalink
fix: BaseConnect Error
Browse files Browse the repository at this point in the history
  • Loading branch information
HyungJoonSon committed Dec 7, 2024
1 parent 96ec091 commit 4217c54
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client-app/lib/core/provider/base_connect.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4217c54

Please sign in to comment.