chore: update identity verification docs (#1677)
This commit is contained in:
parent
b4a547e0ae
commit
bba296b5c6
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ Make sure that you reset the session when the user logs out of your app.
|
|||
To disallow impersonation and to keep the conversation with your customers private, we recommend setting up the identity validation in Chatwoot. Identity validation is enabled by generating an HMAC(hash based message authentication code) based on the `identifier` attribute, using SHA256. Along with the `identifier` you can pass `identifier_hash` also as shown below to make sure that the user is correct one.
|
||||
|
||||
```js
|
||||
window.$chatwoot.setUser(`identifier-hash`, {
|
||||
window.$chatwoot.setUser(`<unique-identifier-key-of-the-user>`, {
|
||||
name: '', // Name of the user
|
||||
avatar_url: '', // Avatar URL
|
||||
email: '', // Email of the user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue