📥 Retrieve user information

The user can be recognized and logged in automatically via the SSO cookie or he can log in using the ComexposiumConnect login widget. Then, it is possible to get the user's email, the JWT token and we can know if the connected email is an exhibitor, a vip or a speaker on the current session.

To perform this, you can listen to the jQuery event named "comexposiumConnectLogged" which can take 4 parameters including email:

 $(document).on("comexposiumConnectLogged", function(event, email, token, isExhibitor){
    console.log(email, token, isExhibitor);
  });

To check the information on the server side, you can also use our API to make sure that the user's token or email is valid.