MCPcopy Create free account
hub / github.com/basecamp/hey-cli / Manager

Struct Manager

internal/auth/auth.go:24–29  ·  view source on GitHub ↗

Manager handles OAuth authentication.

Source from the content-addressed store, hash-verified

22
23type callbackWaiter func(context.Context, string, string, net.Listener, LoginOptions) (string, error)
24type listenerFactory func(context.Context, string, string) (net.Listener, error)
25
26// The callback listener binds an ephemeral loopback port (RFC 8252 §7.3):
27// a fixed port lets any local process squat it and block sign-in.
28const callbackListenAddr = "127.0.0.1:0"
29
30// Manager handles OAuth authentication.
31type Manager struct {
32 baseURL string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected