code: def authenticate(self, account=None, app_account=None, flush=True):
          
          with self._get_account(account) as account:
              if app_account is None:
                  app_account = account
  
              if not self.proto_authenticated:
                  self.protocol_authenticate(account)
              self.app_authenticate(app_account, flush=flush)
docs: Like login(), but skips the authorization procedure.
  
          .. HINT::
             If you are unsure whether to use :class:`authenticate()` or
             :class:`login()`, stick with :class:`login`.
  
          :type  account: Account
          :param account: The account for protocol level authentication.
          :type  app_account: Account
          :param app_account: The account for app level authentication.
          :type  flush: bool
          :param flush: Whether to flush the last prompt from the buffer.