Move the logout logic to the auth manager
:param static_folder:
            optional, your override for the global static folder
        :param static_url_path:
            optional, your override for the global static url path
        :param security_manager_class:
            optional, pass your own security manager class
        :param update_perms:
            optional, update permissions flag (Boolean) you can use
            FAB_UPDATE_PERMS config key also
        :param auth_rate_limited:
            optional, rate limit authentication attempts if set to True (defaults to True)
        :param auth_rate_limit:
            optional, rate limit authentication attempts configuration (defaults "to 5 per 40 second")
        """
        self.baseviews = []
        self._addon_managers = []
        self.addon_managers = {}
        self.menu = menu
        self.base_template = base_template
        self.security_manager_class = security_manager_class
        self.indexview = indexview
        self.static_folder = static_folder
        self.static_url_path = static_url_path
        self.app = app
        self.update_perms = update_perms
        self.auth_rate_limited = auth_rate_limited
        self.auth_rate_limit = auth_rate_limit
        if app is not None:
            self.init_app(app, session)
    def init_app(self, app, session):