Many chats are integrated into exiting websites that already manage their own user login/password. So to avoid a double login process you can auto login to your chat automatically.
For that, you can pass 2 parameters: username and sex, so an user will be auto login to the html5-chat as ‘username’ whose gender is ‘sex’.
Here is a simple way to do it:
Auto login as yarek whose sex=m
<script src=’https://html5-chat.com/script/1/1010/yarek/m‘></script>
As simple as that !
We want to use the user type in our wordpress plugin so we can pass the user type. Do you have any examples of how to do this when using wordpress. We have the HTML5 insert on the page which works fine, what do we add or do to pass the JWT stuff and include the user type/role? Thanks!