matcha icon indicating copy to clipboard operation
matcha copied to clipboard

FEAT: Implement proper OAuth2 token refresh flow

Open andrinoff opened this issue 7 months ago • 2 comments

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

andrinoff avatar Apr 16 '26 20:04 andrinoff

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.

floatpanebot avatar May 17 '26 05:05 floatpanebot

Closing due to inactivity. Reopen if still relevant.

floatpanebot avatar May 31 '26 06:05 floatpanebot