You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
macOS: GitHub Desktop 3.7.0 cannot save sign-in credentials until reboot #23242
bugConfirmed bugs or reports that are very likely to be bugsmore-info-neededThe submitter needs to provide more information about the issuepriority-3Bugs that affect small number of users and/or relatively cosmetic in nature
On November 26, 2026, GitHub Desktop 3.7.0 could no longer read the existing GitHub.com credentials. Browser authorization in Safari completed and returned to Desktop, but Desktop reported “Unable to save your GitHub credentials. Please try signing in again.” Settings → Accounts still showed the sign-in button.
Replacing the app with a fresh copy of the official Apple silicon build of 3.7.0 did not help. Restarting the Mac resolved the problem. The root cause is unknown.
Release version
3.7.0 (Apple silicon)
Operating system
macOS Tahoe 26.5.2 (Apple silicon)
Steps to reproduce the behavior
These steps reproduce the symptom in the affected session. I have not found a reliable way to recreate that system state after rebooting.
Open GitHub Desktop → Settings → Accounts → Sign Into GitHub.com.
Complete browser authorization in Safari and return to Desktop.
Observe the credential-saving error. Accounts continues to show the sign-in button.
Expected: Desktop saves the credentials and displays the authenticated account.
Log files
Relevant GitHub Desktop log messages (OAuth URLs and full logs omitted):
Error getting token for 'GitHub - https://api.github.com'. Skipping.
Error: An unknown error occurred.
Unable to save GitHub credentials in secure storage.
Screenshots
No response
Additional context
Desktop 3.6.11 could authenticate and push from the same Mac the previous evening. The first logged startup of 3.7.0 showed the credential read error. The GitHub.com entry was still visible in Keychain Access, but the Lock command for the login keychain was disabled. No keychain entries were deleted or reset.
Classification: Bug — requesting bug, confidence HIGH. Priority:priority-3, confidence MEDIUM (reproduced once, resolved by reboot, no workaround needed once rebooted, but points to a real keychain-access failure mode). This is not a duplicate of #22208, confidence HIGH — that issue is about the OAuth browser callback itself immediately failing ("unknown error" right after authorization, token never issued, every attempt), whereas this report shows the callback completing and the failure occurring later at the keychain-write step, self-resolving after a reboot.
Initial hypothesis
The logged messages ("Error getting token for 'GitHub - https://api.github.com'. Skipping.", "Unable to save GitHub credentials in secure storage.") map directly to the addAccount catch block in AccountsStore, which calls into keytar via TokenStore/secureStore and emits a generic "Unable to save GitHub credentials in secure storage" error unless the underlying error message matches the isKeyChainError check at lines 59-67 (which only matches a specific "user name or passphrase... not correct" string). The reporter's own observation that the login keychain's "Lock" menu item was disabled suggests the keychain daemon (securityd/SecurityAgent) was itself in a wedged or unresponsive state on that machine — a known macOS behavior after certain system events (e.g. sleep/wake issues, FileVault/session state changes) that can make keychain API calls fail silently or return an opaque error until the process restarts or the Mac reboots. Since a reboot (not just relaunching Desktop) was required, the root cause is more likely a transient macOS keychain-daemon/session issue than a GitHub Desktop code defect, though Desktop's generic error message and lack of keychain-state detection make it hard to diagnose. Confirming whether other apps using the keychain also failed during that window, and capturing log show keychain/securityd errors from that time, would help validate this.
We checked the changes between 3.6.11 and 3.7.0 and nothing changed in how GitHub Desktop reads or writes macOS Keychain credentials. Because both reading your existing token and saving a new one failed, reinstalling 3.7.0 didn't help, the Lock option for the login keychain was disabled in Keychain Access, and rebooting resolved it without touching the keychain entry, this looks like a transient macOS Keychain / securityd state issue rather than a regression in 3.7.0.
If this happens again, a few things you can try before a full reboot:
Check and unlock the login keychain from Terminal:
In Keychain Access, inspect the GitHub - https://api.github.com item under Access Control to confirm GitHub Desktop is still allowed to access it.
Logging out of your macOS user session and logging back in can also reset the keychain session without a full restart.
If it does recur, it would be super helpful to know:
Whether other apps that rely on Keychain (like git CLI or other dev tools) also fail to read/write credentials during that same session.
What security find-generic-password -s "GitHub - https://api.github.com" outputs in Terminal (without -w, so it won't print your token) — our current keychain library collapses some macOS error messages into "An unknown error occurred.", so seeing the raw macOS error code would tell us a lot.
Since a reboot cleared it up and it isn't reproducible right now, I'll go ahead and close this for now, but please feel free to comment if it comes back and we can reopen and dig in!
bugConfirmed bugs or reports that are very likely to be bugsmore-info-neededThe submitter needs to provide more information about the issuepriority-3Bugs that affect small number of users and/or relatively cosmetic in nature
Activity
desktop-triage commentedon Nov 26, 2026
Classification: Bug — requesting
bug, confidence HIGH. Priority:priority-3, confidence MEDIUM (reproduced once, resolved by reboot, no workaround needed once rebooted, but points to a real keychain-access failure mode). This is not a duplicate of #22208, confidence HIGH — that issue is about the OAuth browser callback itself immediately failing ("unknown error" right after authorization, token never issued, every attempt), whereas this report shows the callback completing and the failure occurring later at the keychain-write step, self-resolving after a reboot.Initial hypothesis
The logged messages ("Error getting token for 'GitHub - https://api.github.com'. Skipping.", "Unable to save GitHub credentials in secure storage.") map directly to the
addAccountcatch block inAccountsStore, which calls intokeytarviaTokenStore/secureStoreand emits a generic "Unable to save GitHub credentials in secure storage" error unless the underlying error message matches theisKeyChainErrorcheck at lines 59-67 (which only matches a specific "user name or passphrase... not correct" string). The reporter's own observation that the login keychain's "Lock" menu item was disabled suggests the keychain daemon (securityd/SecurityAgent) was itself in a wedged or unresponsive state on that machine — a known macOS behavior after certain system events (e.g. sleep/wake issues, FileVault/session state changes) that can make keychain API calls fail silently or return an opaque error until the process restarts or the Mac reboots. Since a reboot (not just relaunching Desktop) was required, the root cause is more likely a transient macOS keychain-daemon/session issue than a GitHub Desktop code defect, though Desktop's generic error message and lack of keychain-state detection make it hard to diagnose. Confirming whether other apps using the keychain also failed during that window, and capturinglog showkeychain/securityd errors from that time, would help validate this.sergiou87 commentedon Nov 27, 2026
Thanks for the detailed report!
We checked the changes between 3.6.11 and 3.7.0 and nothing changed in how GitHub Desktop reads or writes macOS Keychain credentials. Because both reading your existing token and saving a new one failed, reinstalling 3.7.0 didn't help, the Lock option for the
loginkeychain was disabled in Keychain Access, and rebooting resolved it without touching the keychain entry, this looks like a transient macOS Keychain /securitydstate issue rather than a regression in 3.7.0.If this happens again, a few things you can try before a full reboot:
loginkeychain from Terminal:GitHub - https://api.github.comitem under Access Control to confirm GitHub Desktop is still allowed to access it.If it does recur, it would be super helpful to know:
gitCLI or other dev tools) also fail to read/write credentials during that same session.security find-generic-password -s "GitHub - https://api.github.com"outputs in Terminal (without-w, so it won't print your token) — our current keychain library collapses some macOS error messages into"An unknown error occurred.", so seeing the raw macOS error code would tell us a lot.Since a reboot cleared it up and it isn't reproducible right now, I'll go ahead and close this for now, but please feel free to comment if it comes back and we can reopen and dig in!