React Instant Search Insights and userToken question

Hey I was just looking at

In there the code for the userToken reads

let userToken = '';
window.aa('getUserToken', null, (err, algoliaUserToken) => {
  if (err) {
    console.error(err);
    return;
  }

  userToken = algoliaUserToken;
});

For the rest of the page it doesn’t look like userToken is used anywhere else? Is this enough to set the userToken?

Hi @jon.wong.music, you can send the usertoken using code like this example.