diff --git a/lib/features/base/base_controller.dart b/lib/features/base/base_controller.dart index 9f3d90cbb..330022c0e 100644 --- a/lib/features/base/base_controller.dart +++ b/lib/features/base/base_controller.dart @@ -262,15 +262,15 @@ abstract class BaseController extends GetxController void logout(Session? session, AccountId? accountId) { _isFcmEnabled = fcmEnabled(session, accountId); - if (_isFcmEnabled) { - final authenticationType = authorizationInterceptors.authenticationType; - if (authenticationType == AuthenticationType.oidc) { - consumeState(logoutOidcInteractor.execute()); - } else { - _getSubscriptionLocalAction(); - } + final authenticationType = authorizationInterceptors.authenticationType; + if (authenticationType == AuthenticationType.oidc) { + consumeState(logoutOidcInteractor.execute()); } else { - checkAuthenticationTypeWhenLogout(); + if (_isFcmEnabled) { + _getSubscriptionLocalAction(); + } else { + logoutAction(); + } } } @@ -333,6 +333,5 @@ abstract class BaseController extends GetxController _fcmReceiver.deleteFcmToken(); } await cachingManager.closeHive(); - goToLogin(arguments: LoginArguments(LoginFormType.ssoForm)); } -} \ No newline at end of file +}