auth

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 9 Imported by: 0

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

func Login(_ context.Context) error

Login prompts the user for an API key and saves it to the config file. Input is read without echo when a terminal is attached.

func Logout

func Logout(_ context.Context) error

Logout removes the API key from the config file.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL