Registry / auth / cli-oauth

cli-oauth

JSON →
library1.2.2gogounverified

A Go library for OAuth authorization in CLI applications, typically against GitHub.

go get github.com/cli/oauth
INSTALL
IMPORT
SIG · CLI-OAUTH
C
cli-oauth
authgov1.2.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

oauth
github.com/cli/oauth

Performing GitHub OAuth device flow using cli-oauth.

package main import ( "context" "fmt" "github.com/cli/oauth" ) func main() { token, err := oauth.GithubDeviceFlow(context.Background()) if err != nil { fmt.Println(err) return } fmt.Printf("Token: %s\n", token) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
22
OpenAI (training)
1
Resources
cli-oauth — go get cli-oauth · libregistry