Identity Verification

Written by
Paulo
Updated a month ago
To securely identify users, you must sign their email address using your private workspace secret key. This ensures that only users you authorize can access your Messenger widget with their information.
PHP Example
Here’s how to generate the HMAC signature in PHP:
{{ hash_hmac("sha256", auth()->user()->email, "YOUR_SECRET_KEY_HERE") }}
Add your generated Hash to Messenger SDK
<script>
window.$pipeback = {
user: {
id: "userId",
name: "userName",
email: "userEmail",
signature: "generatedHash"
}
};
</script>
This content was useful?