Repository navigation
Commit 7086553
fix(identify): send a userHash once even when the cached identity is unchanged (#227678)
identifySession skipped any identify whose userId and data matched the cached
session, also when it now carries a userHash. A contact identified without a
hash before (an older app version, identity verification switched on later, a
sign-up identified before it could get a hash) therefore never sent the hash,
and the server never marked it as proved (session.signedUserId). In Gleap's own
support project that kept long-signed-in dashboard users "unverified" for Kai.
The SDK now remembers `<gleapId>:<userId>` once a hashed identify landed
(memory + cache, cleared on logout) and sends a hashed identify when that record
does not match the current session and user. The hash itself is never stored.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 6efdcfa commit 7086553
2 files changed
Lines changed: 108 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
53 | 61 | | |
54 | 62 | | |
55 | 63 | | |
| |||
248 | 256 | | |
249 | 257 | | |
250 | 258 | | |
| 259 | + | |
251 | 260 | | |
252 | 261 | | |
253 | 262 | | |
| |||
643 | 652 | | |
644 | 653 | | |
645 | 654 | | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
646 | 691 | | |
647 | 692 | | |
648 | 693 | | |
649 | 694 | | |
650 | 695 | | |
651 | 696 | | |
652 | 697 | | |
653 | | - | |
| 698 | + | |
654 | 699 | | |
655 | 700 | | |
656 | 701 | | |
| |||
684 | 729 | | |
685 | 730 | | |
686 | 731 | | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
687 | 735 | | |
688 | 736 | | |
689 | 737 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
239 | 298 | | |
240 | 299 | | |
241 | 300 | | |
| |||
0 commit comments