mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 15:03:16 +00:00
* fix: auto-recover from expired GitHub refresh tokens When a user's GitHub OAuth refresh token was permanently dead (revoked or expired), token refresh failed but get_valid_access_token still handed back the known-stale access token, so dashboard GitHub calls kept 401ing until the user manually logged out and back in. Now we distinguish unrecoverable refresh failures (bad_refresh_token / unauthorized_client) from transient ones: on an unrecoverable failure we drop the dead stored authorization and return None, so callers prompt a clean re-login. Transient failures still fall back to the stored token. Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com> * fix: don't delete fresh re-auth when stale refresh fails --------- Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| admin.py | ||
| agent_instructions.py | ||
| agent_overrides.py | ||
| agent_usage.py | ||
| analyzer_cron.py | ||
| enabled_repos.py | ||
| oauth.py | ||
| options.py | ||
| profiles.py | ||
| repo_access.py | ||
| review_style_jobs.py | ||
| review_styles.py | ||
| routes.py | ||
| schedules.py | ||
| slack_oauth.py | ||
| team_credentials.py | ||
| team_settings.py | ||
| thread_api.py | ||
| user_mappings.py | ||