Describe the feature or problem you’d like to solve
gh auth refresh exists as a useful, quick reauthentication mechanism for users, but the existing error messages around gh operations due to expired tokens do not suggest this; instead, they suggest gh auth login, which has a number of extra steps involved.
Proposed solution
Instead of printing gh auth login when a token generated by gh auth login returns a 401, print gh auth refresh, so the user knows about the simpler path.
Additional context
Don't think there's anything else to add here.
Describe the feature or problem you’d like to solve
gh auth refreshexists as a useful, quick reauthentication mechanism for users, but the existing error messages aroundghoperations due to expired tokens do not suggest this; instead, they suggestgh auth login, which has a number of extra steps involved.Proposed solution
Instead of printing
gh auth loginwhen a token generated bygh auth loginreturns a 401, printgh auth refresh, so the user knows about the simpler path.Additional context
Don't think there's anything else to add here.