check_authentication()

in src/frontend/src/App.js [116:126]


  check_authentication() {

    axios.get(endPoint + '/api/authenticated')
      .then(response => {
        this.setState({ authenticated: response.data.authenticated });
        const { authenticated } = this.state;
        if (authenticated) {
          this.start_socket();
        }
      });
  }