Commit 19b2357
fix(auth): use this.cwd and tighten rc token hint host matching
Two fixes:
- resolveRcContext now uses this.cwd (injected via SentryContext) instead
of process.cwd(), making rc-related login behavior testable
- rcTokenHint now suppresses the hint when .sentryclirc has no URL and
effectiveHost is self-hosted — a bare token in rc is almost certainly
a SaaS token and pairing it with a self-hosted --url would always fail
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent bfed8bf commit 19b2357
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
196 | 200 | | |
197 | 201 | | |
198 | 202 | | |
| |||
362 | 366 | | |
363 | 367 | | |
364 | 368 | | |
365 | | - | |
| 369 | + | |
366 | 370 | | |
367 | 371 | | |
368 | 372 | | |
| |||
0 commit comments