Commit e66f860
fix: include userIdentifier in Session Replay Identify payload (#220)
## Summary
- Mobile `Identify` Session Replay events rendered an empty description
in the session player. The player resolves a description from `email ||
name || userIdentifier`, but the SDK only emitted `key` and
`canonicalKey`.
- Emit `userIdentifier` (friendly name when set, otherwise the canonical
key) in the Identify payload so mobile identifies show a description,
matching the web `Identify` payload shape (`{ userIdentifier,
...userObject }`) without any frontend changes.
## Notes
- `email`/`name` are intentionally not plumbed: they aren't available at
the identify hook call site (only `contextKeys` + `canonicalKey` are
forwarded), and `userIdentifier` is sufficient to fix the
empty-description bug.
## Test plan
- [ ] Build the package
- [ ] Trigger an identify and confirm the Session Replay Identify event
renders a non-empty description in the session player
Made with [Cursor](https://cursor.com)
---------
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 90c3fb3 commit e66f860
1 file changed
Lines changed: 3 additions & 1 deletion
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
55 | 56 | | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
0 commit comments