Skip to content

🐛 fix: refresh tokens before expiry and harden .env handling - #11

Merged
SebastienLaurent-CF merged 1 commit into
mainfrom
fix/v1-token-refresh
Nov 5, 2026
Merged

SebastienLaurent-CF merged 1 commit into
mainfrom
fix/v1-token-refresh

Conversation

@SebastienLaurent-CF

Copy link
Copy Markdown
Contributor
  • Force refresh_token grant: valid tokens were reused until ~10s left
  • Use the 30s-timeout HTTP client for token requests, pass context
  • Find config from subdirectories in get, resolve targets to config dir
  • Write .env atomically with 0600 perms, preserving modes and symlinks
  • Wall-clock refresh loop with backoff, survives suspend, stops on SIGTERM

- Force refresh_token grant: valid tokens were reused until ~10s left
- Use the 30s-timeout HTTP client for token requests, pass context
- Find config from subdirectories in get, resolve targets to config dir
- Write .env atomically with 0600 perms, preserving modes and symlinks
- Wall-clock refresh loop with backoff, survives suspend, stops on SIGTERM
@SebastienLaurent-CF
SebastienLaurent-CF merged commit d41cfa3 into main Nov 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant