chore: update identity verification docs (#1677)

This commit is contained in:
Sojan Jose 2021-01-21 11:27:34 +05:30 committed by GitHub
parent b4a547e0ae
commit bba296b5c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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