code: def _get_login_manager(self,
                             app: FlaskUnchained,
                             anonymous_user: AnonymousUser,
                             ) -> LoginManager:
          
          login_manager = LoginManager()
          login_manager.anonymous_user = anonymous_user or AnonymousUser
          login_manager.localize_callback = _
          login_manager.request_loader(self._request_loader)
          login_manager.user_loader(
              lambda *a, **kw: self.security_utils_service.user_loader(*a, **kw))
          login_manager.login_view = 'security_controller.login'
          login_manager.login_message = _(
              'flask_unchained.bundles.security:error.login_required')
          login_manager.login_message_category = 'info'
          login_manager.needs_refresh_message = _(
              'flask_unchained.bundles.security:error.fresh_login_required')
          login_manager.needs_refresh_message_category = 'info'
          login_manager.init_app(app)
          return login_manager
docs: Get an initialized instance of Flask Login's
          :class:`~flask_login.LoginManager`.