- Add refresh.ts modules for both providers with automatic token refresh logic
- Export refresh functions from main module files
- Follows existing patterns from qwen-portal-auth
- Tokens auto-refresh when expired without manual re-authentication
Fixes#1765
- Extract client ID and secret from Gemini CLI's bundled oauth2.js
- Cross-platform binary lookup (no shell commands)
- Fallback to env vars for user override
- Add tests for credential extraction