auth

package
v0.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package auth manages persistent token storage for OAuth-based providers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(provider string, dirs ...string) (string, string, error)

Load searches directories in order for a token file named provider. Returns the token content and the path it was loaded from. Returns os.ErrNotExist if no token is found in any directory.

func Path

func Path(dir, provider string) string

Path returns dir/provider.

func Save

func Save(dir, provider, token string) error

Save writes a token to dir/provider. Creates the directory if needed.

Types

This section is empty.

Directories

Path Synopsis
Package codex implements the OpenAI device code flow for ChatGPT/Codex authentication.
Package codex implements the OpenAI device code flow for ChatGPT/Codex authentication.
Package copilot implements the GitHub device code flow for Copilot authentication.
Package copilot implements the GitHub device code flow for Copilot authentication.
Package devicecode implements the shared device code polling loop for OAuth flows.
Package devicecode implements the shared device code polling loop for OAuth flows.

Jump to

Keyboard shortcuts

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