`setUser` accepts an identifier which can be a `user_id` in your database or any unique parameter which represents a user. You can pass email, name, avatar_url as params, support for additional parameters are in progress.
Make sure that you reset the session when the user logouts of your app.
Please note that the labels will be set on a conversation, if the user has not started a conversation, then the following items will not have any effect.
```js
window.$chatwoot.addLabel('support-ticket')
window.$chatwoot.removeLabel('support-ticket')
```
### To refresh the session (use this while you logout user from your app)