Repository navigation
Commit 9f4d012
fix(cloudflare): Set KV lock TTL to 60s minimum required by Cloudflare (#784)
## Summary
- Cloudflare KV requires `expirationTtl` >= 60 seconds, but the OAuth
refresh lock TTL was set to 30s
- Every OAuth token refresh was failing with `KV PUT failed: 400 Invalid
expiration_ttl of 30`
- 332 occurrences affecting 42 users since the lock was introduced in
#778
## Changes
- Bumped `LOCK_TTL_SECONDS` from 30 to 60
- Added comment documenting the Cloudflare KV minimum
- Updated test assertion
Fixes MCP-SERVER-F2H
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent a74b685 commit 9f4d012
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
| 221 | + | |
221 | 222 | | |
222 | 223 | | |
223 | 224 | | |
| |||
0 commit comments