auth

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultBrowser

func DefaultBrowser(url string) error

DefaultBrowser attempts to open a URL in the default browser.

func DeviceFlow

func DeviceFlow(ctx context.Context, clientID, scope string, openBrowser func(string) error, out io.Writer) (string, error)

DeviceFlow performs GitHub device authorization flow. openBrowser is called with the verification URL to open for user login.

func LoadToken

func LoadToken() string

LoadToken returns GITHUB_TOKEN environment variable or stored token if present.

func SaveToken

func SaveToken(token string) (string, error)

SaveToken stores the token in ~/.config/eskimo/token with 0600 permissions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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