Journeeze Docs Early access

Identity and privacy

Journeeze is private by default. Nothing is captured until a visitor consents. Signed-in users are optional, and the browser never sees your secrets.

Signed-in users

Attributing feedback to a user is optional. When you do, your server makes the user id and signs it. The browser never sees either secret.

  1. User id. HMAC-SHA256(your own secret, your internal user id), as 64 lowercase hex or 43 base64url characters. Never an email, name or raw id. The SDK ignores anything else with a console warning. Keep this secret stable. Changing it splits every user’s history.

  2. Signature. Sign with the identity secret you received for the site:

    import { createHmac } from "node:crypto";
    
    export function signUserId(identitySecretHex: string, siteKey: string, userId: string) {
      const userIdExp = Math.floor(Date.now() / 1000) + 3600; // at most 24 h ahead
      const userIdSig = createHmac("sha256", Buffer.from(identitySecretHex, "hex"))
        .update(`jz-id-v1\n${siteKey}\n${userId}\n${userIdExp}`)
        .digest("base64url");
      return { userId, userIdExp, userIdSig };
    }
    
  3. Check your code against this test vector.

    • Secret: the bytes 0x00 to 0x1f (hex 000102…1e1f).
    • Site key: pk_0123456789abcdef0123456789abcdef.
    • User id: a × 64.
    • userIdExp: 1800000000.
    • Expected userIdSig: IluU_qUHY6OdSzqKu0Y_wS0sDB53qVOOnobfdHuCnjI.
  4. Deliver { userId, userIdExp, userIdSig } from an authenticated endpoint with Cache-Control: no-store. Never put them in public config.

  5. Pass them to the SDK. Use the provider props userId, userIdSig, userIdExp, or jz.setUser(userId, { sig, exp }). Re-issue the signature before it expires. The SDK never refreshes it.

Sites require the signature by default. With a missing, expired or wrong signature, that feedback is anonymous and has no screenshot.

Logout and reset

reset() sends that user’s unsent feedback once. Then it clears that feedback, the context, consent and the reviewer token from the device.

To erase one user’s data from Journeeze, ask the Journeeze team at privacy@journeeze.dev.

Privacy and masking

Put data-jz-mask on every element that shows customer content. Then check the masked screenshot on each screen that shows data.

What is never captured