setUserHash method

Future<void> setUserHash(
  1. String userHash
)

To make sure that conversations between you and your users are kept private and that one user can't impersonate another then you need you need to setup the identity verification.

This function helps to set up the identity verification. Here you need to pass hash (HMAC) of the user.

This must be called before registering the user in Intercom.

To generate the user hash (HMAC) see gist.github.com/thewheat/7342c76ade46e7322c3e

Note: identity verification does not apply to unidentified users.

Implementation

Future<void> setUserHash(String userHash) {
  return IntercomFlutterPlatform.instance.setUserHash(userHash);
}