Skip to content

Authentication fails on macOS Tahoe 26.5 — "Unknown error occurred" after OAuth callback #22208

Closed as duplicate

Description

@OkgreatNicolas

The problem

Description
After completing the OAuth authorization flow in the browser, GitHub Desktop fails to receive the auth token and shows "An unknown error occurred." The app is stuck in an unauthenticated state and the issue persists across multiple sign-in attempts.

Steps to reproduce
Open GitHub Desktop on macOS Tahoe 26.5
Go to GitHub Desktop > Settings > Accounts
Click "Sign in to GitHub.com" — the browser opens the GitHub authorization page
GitHub correctly identifies the account and presents the "Authorize GitHub Desktop" screen
Click "Continue" — GitHub authorizes the app successfully on the web side
GitHub Desktop receives the callback and immediately shows: "An unknown error occurred."
The app remains signed out; attempting to fetch/push shows an "Authentication failed" error

Expected behavior
After clicking "Continue" in the browser, the OAuth token should be passed back to GitHub Desktop and the user should be signed in successfully.
Actual behavior
The app shows "An unknown error occurred." and the user remains unauthenticated. The OAuth token registered on GitHub's side shows as "Never used", confirming the token is never successfully received by the app.
Environment

macOS version: Tahoe 26.5
GitHub Desktop version: 3.5.11
Browser used for OAuth: Chrome

Additional context
The GitHub side of the authorization completes without issue — the OAuth app entry for GitHub Desktop appears in GitHub Settings > Authorized OAuth Apps after each attempt. The failure appears to occur during the x-github-client:// URL scheme callback from the browser back to the app, which may be affected by changes to how macOS Tahoe handles custom URL scheme redirects or app entitlements.

Release version

3.5.11

Operating system

Mac OS Tahoe 26.5

Steps to reproduce the behavior

Steps to reproduce
Open GitHub Desktop on macOS Tahoe 26.5
Go to GitHub Desktop > Settings > Accounts
Click "Sign in to GitHub.com" — the browser opens the GitHub authorization page
GitHub correctly identifies the account and presents the "Authorize GitHub Desktop" screen
Click "Continue" — GitHub authorizes the app successfully on the web side
GitHub Desktop receives the callback and immediately shows: "An unknown error occurred."
The app remains signed out; attempting to fetch/push shows an "Authentication failed" error

Log files

No response

Screenshots

Image

Additional context

Additional context
The GitHub side of the authorization completes without issue — the OAuth app entry for GitHub Desktop appears in GitHub Settings > Authorized OAuth Apps after each attempt. The failure appears to occur during the x-github-client:// URL scheme callback from the browser back to the app, which may be affected by changes to how macOS Tahoe handles custom URL scheme redirects or app entitlements.

Activity

  1. niik commented on May 29, 2026

    @niik
    Member

    Thanks for the report! Could you upload a log file from GitHub Desktop so that I could get some more information about this issue? To access the log files go to the menu in GitHub Desktop and select Help > `Show Logs in Finder

    The log files are created daily -- please upload a log file as an attachment from a day where you experienced the issue. Thanks!

  2. added
    more-info-needed
    on May 29, 2026
  3. OkgreatNicolas commented on Jun 1, 2026

    @OkgreatNicolas
    Author

    Here are logs from 2 different days ... I think there is an authentication problem or a bug in the token exchange. Commiting works, pushing works, automatic fetching fails. I also try to login every time but I'm not logged in anymore after pushing.

    2026-05-28.desktop.production.log
    2026-05-29.desktop.production.log

    @niik

  4. removed
    more-info-needed
    on Jun 1, 2026
  5. added
    bug
    priority-2
    on Jun 3, 2026
  6. BagToad commented on Jun 3, 2026

    @BagToad
    Member

    This is the same root cause as #22237, so I'm closing this out as a duplicate of that. Please follow #22237 for updates.

  7. wvnr5m6h4r-commits commented on Sep 8, 2026

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority-2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions