code: def logout_user():
      
  
      for key in ('identity.name', 'identity.auth_type'):
          session.pop(key, None)
      identity_changed.send(current_app._get_current_object(),
                            identity=AnonymousIdentity())
      _logout_user()
docs: Logs out the current.
  
      This will also clean up the remember me cookie if it exists.