diff --git a/packages/sf_infrastructure/lib/src/network/treezor_token_interceptor.dart b/packages/sf_infrastructure/lib/src/network/treezor_token_interceptor.dart index 089d7f14..4afa64a0 100644 --- a/packages/sf_infrastructure/lib/src/network/treezor_token_interceptor.dart +++ b/packages/sf_infrastructure/lib/src/network/treezor_token_interceptor.dart @@ -16,16 +16,19 @@ class TreezorTokenInterceptor extends Interceptor { @override void onError(DioException err, ErrorInterceptorHandler handler) { if (!_handling) { - final message = _extractApiMessage(err.response?.data); - if (message != null && message.contains('Treezor Token Expired')) { - _handling = true; - _onTokenExpired(); - Future.delayed(const Duration(seconds: 2), () => _handling = false); - } else if (err.response?.statusCode == 500) { - _handling = true; - _onTokenExpired(); - Future.delayed(const Duration(seconds: 2), () => _handling = false); - } else if (err.response?.statusCode == 401) { + // final message = _extractApiMessage(err.response?.data); + // if (message != null && message.contains('Treezor Token Expired')) { + // _handling = true; + // _onTokenExpired(); + // Future.delayed(const Duration(seconds: 2), () => _handling = false); + // } + // else if (err.response?.statusCode == 500) { + // _handling = true; + // _onTokenExpired(); + // Future.delayed(const Duration(seconds: 2), () => _handling = false); + // } + // else + if (err.response?.statusCode == 401) { _handling = true; _onUnauthorized(); Future.delayed(const Duration(seconds: 2), () => _handling = false);