Skip to main content
There are two ways to know who an agent’s customer is: the stable customer ID, and hashes you can compare against your own records.

The Stable Customer ID

sub is a stable ID for this customer at your site. The same person gets the same ID on every visit. Another site gets a different ID for the same person.
  1. Store it against the customer’s account.
  2. On the next visit, look it up in your own database.
  3. If you find it, this is a returning customer.
A credential check keeps no record of who it has seen. With Agent Acceptance on, Baselayer keeps the agent visits your site reports, including the credential’s site-specific ID as subject. That subject is the same ID as the credential’s sub, so you can find a returning customer’s visits in Reading Agent Activity.

Hashes

A credential can share a value as a hash instead of in plain text, for example hashes.email. The hash looks like sha256:<hex>.
  1. Hash the value you have on file, normalized the way Baselayer normalizes it.
  2. Compare it with the shared hash.
  3. If they match, the customer’s value is the same as yours, and you never received the plain text.
  4. Before you link the agent to that account, confirm ownership as in Linking an Agent to an Existing Account.
Baselayer cleans up each value before hashing (for example, it lowercases emails and turns phone numbers into international format), so small formatting differences still match:
  • Phone numbers without a country code are read as US numbers.
  • Address parts are all optional, country defaults to US, and each part is in standard USPS form.
  • EIN and SSN keep digits only, so 12-3456789 and 123456789 hash the same.
Baselayer fills in hashes.ssn from its own verification, and in Baselayer’s hosted flow the person never types an SSN. Match it only against an SSN you already hold on file. On a single credential the hashes are in its claims. On a business pair, the business’s are in claims and the acting person’s in act.claims.

Linking an Agent to an Existing Account

A matching hash shows a value matches one you hold, not that the agent’s customer owns the account. Email addresses get recycled. Before allowing sensitive actions, you can also require specific checks in the credential’s verification.active_keys, such as:
  • watchlist_clear for a clear watchlist result
  • phone_possession for a confirmed phone

Next Steps