After completing the interactive `gh auth login` flow, the `hosts.yml` config file will have been populated with both `oauth_token` and `user` properties for the GitHub host. However, after `auth login --with-token` only the `oauth_token` is persisted but no username. This fixes `auth git-credential` behavior so it allows authentication even if the `user` property is missing. It's entirely optional to send a proper username for git authentication, since GitHub seems to ignore the actual value sent and just focuses on the token itself. |
||
|---|---|---|
| .. | ||
| gitcredential | ||
| login | ||
| logout | ||
| refresh | ||
| setupgit | ||
| shared | ||
| status | ||
| auth.go | ||