Commit f58ad3a
fix(ticket-client): preserve tokenRefreshedAt on inline token refresh (#1783)
## Summary
- Adds `tokenRefreshedAt` (ISO 8601 timestamp) to the SM secret payload
written by `OAuthCredentialManager#writeTokens()` on inline token
refresh
- Previously, auth-service wrote this field at OAuth callback time, but
ticket-client's inline refresh overwrote the secret without it — the
timestamp disappeared after the first inline refresh
## Context
Found during alignment review of auth-service PR #595 against
ticket-client PR #1701. The field is observability-only (not read by any
code path), but ops tooling that inspects SM secrets to check token
freshness loses the timestamp.
## Test plan
- [x] Existing test updated to verify `tokenRefreshedAt` is present and
recent in written SM payload
- [x] 200 tests passing, 100% coverage
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5a7be7d commit f58ad3a
2 files changed
Lines changed: 4 additions & 0 deletions
File tree
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| 452 | + | |
452 | 453 | | |
| 454 | + | |
453 | 455 | | |
454 | 456 | | |
455 | 457 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
| 333 | + | |
| 334 | + | |
333 | 335 | | |
334 | 336 | | |
335 | 337 | | |
| |||
0 commit comments