Commit 3d2548e
Fix script tag validation when both user_id and email are JWT signed fields (#375)
When both user_id and email are configured as signed_user_fields, they are
deleted from user_details during JWT promotion. The valid? check then finds
neither field and silently suppresses the script tag. Fix by capturing
identity presence before the fields are moved to the JWT payload.
Related to intercom/intercom#430057
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 8359be8 commit 3d2548e
2 files changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
446 | 462 | | |
447 | 463 | | |
448 | 464 | | |
| |||
0 commit comments