code: def init_app(self, app, add_context_processor=True):
          '''
          Configures an application. This registers an `after_request` call, and
          attaches this `LoginManager` to it as `app.login_manager`.
  
          :param app: The :class:`flask.Flask` object to configure.
          :type app: :class:`flask.Flask`
          :param add_context_processor: Whether to add a context processor to
              the app that adds a `current_user` variable to the template.
              Defaults to ``True``.
          :type add_context_processor: bool
          '''
          app.login_manager = self
          app.after_request(self._update_remember_cookie)
  
          if add_context_processor:
              app.context_processor(_user_context_processorf init_app(self, app, add_context_processor=True):
          '''
          Configures an application. This registers an `after_request` call, and
          attaches this `LoginManager` to it as `app.login_manager`.
  
          :param app: The :class:`flask.Flask` object to configure.
          :type app: :class:`flask.Flask`
          :param add_context_processor: Whether to add a context processor to
              the app that adds a `current_user` variable to the template.
              Defaults to ``True``.
          :type add_context_processor: bool
          '''
          app.login_manager = self
          app.after_request(self._update_remember_cookie)
  
          if add_context_processor:
              app.context_processor(_user_context_processor)
docs: Configures an application. This registers an `after_request` call, and
          attaches this `LoginManager` to it as `app.login_manager`.
  
          :param app: The :class:`flask.Flask` object to configure.
          :type app: :class:`flask.Flask`
          :param add_context_processor: Whether to add a context processor to
              the app that adds a `current_user` variable to the template.
              Defaults to ``True``.
          :type add_context_processor: bool