mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-03 20:48:07 +00:00
chore: Update website-sdk documentation (#1267)
Update the `website-sdk` documentation to reflect the feedback on setUser method from a customer
This commit is contained in:
@@ -66,10 +66,10 @@ window.$chatwoot.toggle();
|
|||||||
### To set the user in the widget
|
### To set the user in the widget
|
||||||
|
|
||||||
```js
|
```js
|
||||||
window.$chatwoot.setUser('identifier_key', {
|
window.$chatwoot.setUser('<unique-identifier-key-of-the-user>', {
|
||||||
email: 'email@example.com',
|
email: '<email-address-of-the-user@your-domain.com>',
|
||||||
name: 'name',
|
name: '<name-of-the-user>',
|
||||||
avatar_url: '',
|
avatar_url: '<avatar-url-of-the-user>',
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user