Skip to content

Redirect to GitHub auth flow if token is invalid #10053

@peicodes

Description

@peicodes

If a GitHub token is invalid, we should route the user back through the auth flow.

If a user previously revoked Warp's access from their GitHub account, the OAuth token stored on our side may be invalid or expired. However, the GitHub integration record still exists on the account. The system tries to use the stale token instead of prompting for a fresh GitHub OAuth authorization, causing a "Failed to load github repos: missing response data" error.

The fix should clear or invalidate the existing GitHub OAuth integration record and prompt the user to go through the full GitHub authorization flow again.


Linear: REMOTE-1026

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:agentAgent workflows, conversations, prompts, cloud mode, and AI-specific UI.area:authAuthentication, login, SSO, session management, and account security.bugSomething isn't working.repro:mediumThe report suggests a plausible repro path, but some uncertainty remains.triagedIssue has received an initial automated triage pass.warp:prioritizedIssues prioritized by the Warp team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions