Skip to content

fix(github): Reauth malformed token refreshes#620

Merged
dcramer merged 1 commit into
mainfrom
fix/github-refresh-reauth
Jun 18, 2026
Merged

fix(github): Reauth malformed token refreshes#620
dcramer merged 1 commit into
mainfrom
fix/github-refresh-reauth

Conversation

@dcramer

@dcramer dcramer commented Jun 18, 2026

Copy link
Copy Markdown
Member

GitHub user-token refresh now treats refresh-token rejection responses as an auth-expired state even when the OAuth endpoint returns HTTP 200. This prevents sandbox egress from crashing on a successful HTTP response that contains no access token and lets the existing plugin auth pause flow ask the user to reconnect GitHub.

The change keeps non-expiry OAuth errors and malformed token responses after access-token parsing as operational failures, so provider outages or contract drift still surface for investigation. Focused GitHub plugin tests cover the 200 error-body cases and the operational-error boundary.

Fixes JUNIOR-40

Treat GitHub refresh-token rejection responses as user auth expiry even when the token endpoint returns HTTP 200. Keep unrelated OAuth errors operational so provider outages still surface as failures.

Fixes JUNIOR-40

Co-Authored-By: GPT-5 Codex <codex@openai.com>
@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview, Comment Jun 18, 2026 8:47pm

Request Review

@dcramer dcramer marked this pull request as ready for review June 18, 2026 21:11
@dcramer dcramer merged commit 5475238 into main Jun 18, 2026
16 checks passed
@dcramer dcramer deleted the fix/github-refresh-reauth branch June 18, 2026 21:12
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