Skip to content

GitHub Copilot OAuth saves identical access and refresh tokens with expires: 0 #35145

Closed as not planned

Description

@Koto510510

Description

GitHub Copilot Student plan user. OAuth authentication succeeds but auth.json saves:

  • access and refresh tokens are identical
  • expires is 0

This makes the provider unusable. PAT tokens are not supported by the Copilot API endpoint.

Environment: Windows desktop beta app

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • Steps to reproduce are empty — please describe the exact steps to trigger the behavior (e.g., how you authenticated, what you clicked/ran, what you observed in auth.json)
    • OpenCode version is missing — please provide the version you are using
    • Operating System details are missing — Windows version / build would help narrow this down

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


    This issue may be related to existing issues. Please check:

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

    Feel free to open a new issue that follows our issue templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions