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
Commit 604120a
Browse filesBrowse the repository at this point in the historyBrowse files
fix(auth/token): restore legacy unkeyed keyring lookup when --user is omitted
Under --secure-storage, the non-refreshable keyring fallback was keyed on the
resolved active username rather than the --user flag value. When only the legacy
unkeyed keyring slot exists but an active user is recorded, this read the empty
per-user slot and reported no token found, a regression from the original
behaviour.
Key the fallback on opts.Username so an omitted --user reads the legacy unkeyed
slot exactly as before, while the refresh lookup still resolves a username
because refreshable tokens are always stored per user. Also fold the old unkeyed
branch of --secure-storage --no-refresh into the same fallback. Add pinning
tests covering both --secure-storage branches with only the legacy slot present.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ac178b5a-5b62-49bd-9e83-4796c7ddec46
0 commit comments