Identity Verification

Noel Lynagh Updated by Noel Lynagh

Adding Identity Verification offers you an extra layer of user protection. Identity Verification requires that you generate an HMAC on your server for each logged-in user and pass it to TABLE.


  1. Generate HMAC

To generate an HMAC in PHP:

'sha256', // hash function
$user->id, // your user's id
'<TABLE_SECRET>' // secret key

To generate an HMAC in Python:

import hmac
import hashlib
b'<TABLE_SECRET>', # table secret
bytes(, encoding='utf-8'), # your user's id
digestmod=hashlib.sha256 # hash function

To generate an HMAC in Ruby:

'sha256', # hash function
'<TABLE_SECRET>', # table secret # your user's id
  1. Everywhere that you load user data and have a window.tableSettings code snippet, add a new attribute called user_hash and assign the HMAC code for the logged-in user to it:
window.tableSettings = {
short_code: '{EXPERIENCE_SHORT_CODE}',
first_name: "John",
last_name: "Doe",
email: "",
user_id: "{USER_ID_ON_YOUR_SYSTEM}",
created_at: 1258929196
<script id='__table_iac' src="https://{CUSTOMER_ID}" async>​</script>​



How did we do?

Install TABLE on your web app (for logged-out users)