Commit 90d64a9
fix(webapp): give PAT-authenticated requests user.id in sentry events
createLoaderPATApiRoute was the only authenticated builder not stamping
the scope with the request's user — PAT auth carries `userId` but not
an AuthenticatedEnvironment, so the other builders' `tenantContext.run`
pattern doesn't apply. Enrich the scope established by the Express
middleware with the user id so Sentry events from PAT routes get
user-level attribution.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 6673298 commit 90d64a9
1 file changed
Lines changed: 5 additions & 0 deletions
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
597 | 602 | | |
598 | 603 | | |
599 | 604 | | |
| |||
0 commit comments