You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update code examples with MultiLanguage and clarify server-to-frontend flow
- Use MultiLanguage component for Node.js/Python examples
- Clarify hash must be generated server-side and passed to frontend
- Add separate section showing how to use the hash with JS SDK in browser
- Emphasize never exposing the shared secret in client-side code
Copy file name to clipboardExpand all lines: contents/docs/cdp/transformations/secure-event-validation.md
+48-24Lines changed: 48 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,46 +43,70 @@ When an event arrives, this transformation:
43
43
44
44
## Client-side implementation
45
45
46
-
To use this transformation, you need to generate the verification hash on your server and include it when identifying users or sending events.
46
+
To use this transformation, you need to generate the verification hash **on your server** and pass it to the frontend. The hash must be generated server-side to keep your shared secret secure — never expose the secret in client-side code.
0 commit comments