matcha
matcha copied to clipboard
FEAT: Implement proper OAuth2 token refresh flow
Is your feature request related to a problem? OAuth2 tokens expire but no automatic refresh. Related to #619 but requires full implementation of token refresh, not just validation.
Describe the solution you would like:
- Detect token expiry before use
- Automatically refresh using refresh token
- Save new tokens to config
- Handle refresh failures gracefully
- Add retry logic for network issues
Describe alternatives you have considered: Manual re-authentication (current). Auto-refresh provides better UX.
Additional context:
- File: fetcher/fetcher.go, config/config.go
- Requires OAuth2 library integration
- Must handle multiple OAuth2 providers (Google, Microsoft, etc)
- Need secure refresh token storage
- Complexity: High - OAuth2 protocol implementation
This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.
Closing due to inactivity. Reopen if still relevant.