Commit bd4e86a
Add refresh_expires_in to OAuth token responses (#756)
## Summary
- Adds `refresh_expires_in` field (30 days in seconds) to both the
authorization code exchange and refresh token grant responses
- Companion to AudiusProject/apps#14078 which adds client-side token
expiry tracking to the SDK
## Test plan
- [ ] `POST /v1/oauth/token` (authorization_code grant) response
includes `refresh_expires_in: 2592000`
- [ ] `POST /v1/oauth/token` (refresh_token grant) response includes
`refresh_expires_in: 2592000`
- [ ] Existing `expires_in` field unchanged (still 3600)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent ef57d29 commit bd4e86a
1 file changed
+12
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
373 | 374 | | |
374 | 375 | | |
375 | 376 | | |
| |||
487 | 488 | | |
488 | 489 | | |
489 | 490 | | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
495 | 497 | | |
496 | 498 | | |
497 | 499 | | |
| |||
0 commit comments