Documentation
¶
Overview ¶
Package auth implements `hadron auth ...`.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var PasskeyCapabilities = api.Capabilities
PasskeyCapabilities reads GET /capabilities. Package-level so tests can count or fail it (TestPasskeyListDiscoveryErrorIsOneLine injects an error); the default is the cached, unauthenticated api.Capabilities.
var PasskeyOpenBrowser = authpkg.OpenInBrowser
PasskeyOpenBrowser is the launcher `revoke-page --open` calls: argv, no shell, a leading '-' refused (auth.OpenInBrowser). Tests swap it so no test ever navigates.
var PasskeyStdoutIsTerminal = func(streams *output.IOStreams) bool { return streams.IsTerminal() }
PasskeyStdoutIsTerminal reports whether stdout is a terminal, the one condition under which --open may launch. A seam because the test streams can fake an input terminal but not an output one.
Functions ¶
func PasskeyKeyMaterialNames ¶ added in v0.44.0
func PasskeyKeyMaterialNames() []string
PasskeyKeyMaterialNames returns the fields the server withholds over a bearer (hadron-server resolvers.passkeys.ts, #1631 §10): this read never selects or prints them. It is the ONE list both guards read, the operation-selection unit test here and the command-level --json key walk, so they cannot drift. A fresh copy each call, so no caller can edit it.
Types ¶
This section is empty.