original_docstring: Return if the user is already logged in.
  
          Reverse engineered from a javascript library of the routers web application. The response of this method doesn't
          indicate if a consecutive call will fail or succeed. Method is kept for reference.
          
docstring: Return if the user is already logged in.
  Reverse engineered from a javascript library of the routers web application. The response of this method doesn't
  indicate if a consecutive call will fail or succeed. Method is kept for reference.
docstring_tokens: Return if the user is already logged in . Reverse engineered from a javascript library of the routers web application . The response of this method doesn ' t indicate if a consecutive call will fail or succeed . Method is kept for reference .
code: def _is_logged_in(self) -> int:
          """Return if the user is already logged in.
  
          Reverse engineered from a javascript library of the routers web application. The response of this method doesn't
          indicate if a consecutive call will fail or succeed. Method is kept for reference.
          """
          token_json = self._token_as_json()
  
          if "muti" in token_json:
              muti = token_json["muti"]
              con_type = token_json["conType"]
              gw_wan = token_json["gwWan"]
  
              if gw_wan == "f" and con_type == "LAN" and muti == "GW_WAN":
                  return 2  # Remote user already login.
              elif gw_wan == "t" and muti == "LAN":
                  return 1  # Local user already login.
              if gw_wan == "f" and con_type == "LAN" and muti == "LAN":
                  return 3  # Other local user already login.
              elif gw_wan == "t" and muti == "GW_WAN":
                  return 4  # Other remote user already login.
  
          return 0
code_tokens: def _is_logged_in ( self ) -> int : token_json = self . _token_as_json ( ) if "muti" in token_json : muti = token_json [ "muti" ] con_type = token_json [ "conType" ] gw_wan = token_json [ "gwWan" ] if gw_wan == "f" and con_type == "LAN" and muti == "GW_WAN" : return 2 elif gw_wan == "t" and muti == "LAN" : return 1 if gw_wan == "f" and con_type == "LAN" and muti == "LAN" : return 3 elif gw_wan == "t" and muti == "GW_WAN" : return 4 return 0
short_docstring: Return if the user is already logged in.
short_docstring_tokens: Return if the user is already logged in .
comment: """Return if the user is already logged in.
  
          Reverse engineered from a javascript library of the routers web application. The response of this method doesn't
          indicate if a consecutive call will fail or succeed. Method is kept for reference.
          """$SEP$# Remote user already login.
  $SEP$# Local user already login.
  $SEP$# Other local user already login.
  $SEP$# Other remote user already login.
  