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.
- Store it against the customer’s account.
- On the next visit, look it up in your own database.
- If you find it, this is a returning customer.
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 examplehashes.email. The hash looks like sha256:<hex>.
- Hash the value you have on file, normalized the way Baselayer normalizes it.
- Compare it with the shared hash.
- If they match, the customer’s value is the same as yours, and you never received the plain text.
- Before you link the agent to that account, confirm ownership as in Linking an Agent to an Existing Account.
- Phone numbers without a country code are read as US numbers.
- Address parts are all optional,
countrydefaults to US, and each part is in standard USPS form. - EIN and SSN keep digits only, so
12-3456789and123456789hash 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_clearfor a clear watchlist resultphone_possessionfor a confirmed phone
Next Steps
- Handling Failures: know why a credential was refused and what to tell the agent.
- Business Agents: check an agent acting for a business.