cli/pkg/cmd/auth
Andrey 4e1318eb2a
feat: gh auth Automatically copy one-time OAuth code to clipboard (#11518)
* feat: add ability to copy one-time OAuth code while authenticating

Signed-off-by: Andrey <andrekabatareika@gmail.com>

* fix(docs): wrong example for gh auth refresh

* chore(authflow): update message to include one-time code to it

Co-authored-by: Kynan Ware <47394200+BagToad@users.noreply.github.com>

* chore(authflow): improve message when copied one-time code

Co-authored-by: Kynan Ware <47394200+BagToad@users.noreply.github.com>

* chore(authflow): don't early return error when could not copy OAuth code

Co-authored-by: Kynan Ware <47394200+BagToad@users.noreply.github.com>

* refactor(authflow): make code for working with OAuth code more readable

* Adjust language in `gh auth` help for clipboard

---------

Signed-off-by: Andrey <andrekabatareika@gmail.com>
Co-authored-by: Kynan Ware <47394200+BagToad@users.noreply.github.com>
2025-08-25 09:52:51 -06:00
..
gitcredential Add error to auth refresh when active user does not match newly authenticated token user 2023-12-06 16:51:48 -04:00
login feat: gh auth Automatically copy one-time OAuth code to clipboard (#11518) 2025-08-25 09:52:51 -06:00
logout docs: OAuth doc link moves to newline 2025-02-24 14:12:19 -07:00
refresh feat: gh auth Automatically copy one-time OAuth code to clipboard (#11518) 2025-08-25 09:52:51 -06:00
setupgit Enhance gh repo create docs, fix random cmd link 2024-09-16 13:42:51 -04:00
shared feat: gh auth Automatically copy one-time OAuth code to clipboard (#11518) 2025-08-25 09:52:51 -06:00
status Expand active test cases 2024-08-30 10:57:51 -04:00
switch Move config interfaces into gh package (#9060) 2024-05-10 10:39:36 +02:00
token Remove unncessary printf usage 2025-01-21 18:04:47 +01:00
auth.go Implement auth switch 2023-12-06 14:06:28 +01:00