cli/pkg/cmd/auth/shared
Fredric Silberberg a656271f26 Print gh auth refresh for 401 returns
`gh auth refresh` exists to make it simpler for users to refresh their tokens on expiration/scope mismatch, but help messages only suggest using it in limited scenarios, and not in a common case of a token expiring and the user receiving a 401 error. Now, the auth flow will detect this case, and for refreshable tokens (namely, tokens created by logging in with `gh auth login` in the first place), it will suggest using `gh auth refresh` for these cases.
2026-04-20 12:07:14 -06:00
..
contract Comment the purpose of the helper config contract 2024-05-17 14:33:19 +02:00
gitcredentials Add HelperConfig contract test and FakeHelperConfig 2024-05-17 14:16:14 +02:00
git_credential.go Test git credentials are configured in LoginFlow 2024-05-17 14:31:21 +02:00
git_credential_test.go Remove unnecessary credential setup private method 2024-05-16 13:39:42 +02:00
login_flow.go refactor(auth login): use PlainHttpClient for OAuth flow 2025-10-13 16:51:11 +01:00
login_flow_test.go Fix ssh directory 2024-11-06 16:13:29 +00:00
oauth_scopes.go show token scopes on auth status (#6546) 2023-01-25 16:25:00 +01:00
oauth_scopes_test.go show token scopes on auth status (#6546) 2023-01-25 16:25:00 +01:00
prompt.go use Prompter in auth commands 2022-09-13 13:22:50 -07:00
writeable.go Print gh auth refresh for 401 returns 2026-04-20 12:07:14 -06:00