Registry / auth / go-auth

go-auth

JSON →
library0.20.0gogounverified

Provides utilities for managing Google Cloud credentials, including OAuth2 token creation, caching, and refreshing.

go get cloud.google.com/go/auth
INSTALL
IMPORT
SIG · GO-AUTH
G
go-auth
authgov0.20.0
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.

auth
cloud.google.com/go/auth

Obtains default application credentials and retrieves an OAuth2 token.

package main import ( "context" "fmt" "cloud.google.com/go/auth" ) func main() { ctx := context.Background() creds, err := auth.NewApplicationDefault(ctx) if err != nil { panic(err) } token, err := creds.Token(ctx) if err != nil { panic(err) } fmt.Println(token) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

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