Documentation
¶
Overview ¶
templ: version: v0.3.1001
Package cli implements the browser side of the `stackr` CLI login flow.
gh-style loopback code exchange: the CLI opens the browser at GET /cli/authorize (behind the web session), the user approves, and the server mints an API key but hands the browser only a one-time *code*. The CLI then exchanges that code for the raw key over a direct request to POST /cli/exchange. The raw key never touches the browser (history sync would otherwise carry it off the machine).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
NewHandler creates the CLI-login handler. Codes live in memory only; a pending login that outlives a restart just fails and the user retries.
Types ¶
This section is empty.