Documentation
¶
Overview ¶
Package auth implements the `supermodel login` and `supermodel logout` commands. It handles GitHub OAuth, API key retrieval, and secure token storage in the user's config file.
This is a vertical slice. It must not import any other slice package. It may import from the shared kernel: internal/api, internal/cache, internal/config, internal/ui, internal/build.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Login ¶
Login runs the browser-based login flow. Opens the dashboard to create an API key, receives it via localhost callback, validates, and saves it. Falls back to manual paste if the browser flow fails.
func LoginWithToken ¶ added in v0.3.1
LoginWithToken saves an API key directly (for CI/headless use).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.