HMAC verification
HMAC verification uses a shared secret to sign the user’s ID on your backend. The widget sends the signature to Agentic Trust, which verifies it before granting access.1
Generate an HMAC secret
Go to Identity in the dashboard sidebar and click Generate Secret. Copy the secret — it’s only shown once.
2
Sign the user ID on your backend
Compute an HMAC-SHA256 signature of the user’s external ID using the secret:
3
Pass the signature to the widget
Include the user object when initializing the widget:
JWT verification
JWT verification uses a signed token instead of a raw HMAC. This is useful when you already issue JWTs in your application.1
Generate an HMAC secret
Same as above — the secret is used to sign and verify JWTs (HS256 algorithm).
2
Issue a JWT on your backend
Create a JWT with the user’s ID as the
sub claim. Optionally include email and name:3
Pass the token to the widget
Use the
identify method or set up automatic token refresh: