auth

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package auth stores the claude.ai session cookie in the OS keychain.

On macOS this is Keychain Access; on Windows it's Credential Manager; on Linux it's Secret Service (gnome-keyring / kwallet). All via zalando/go-keyring.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotLoggedIn = errors.New("not logged in (no credential in keychain)")

ErrNotLoggedIn is returned when no credential is stored.

Functions

func DeleteCookie

func DeleteCookie() error

DeleteCookie removes the stored credential. Idempotent.

func LoadCookie

func LoadCookie() (string, error)

LoadCookie returns the stored session cookie, or ErrNotLoggedIn if none.

func SaveCookie

func SaveCookie(cookie string) error

SaveCookie stores the session cookie under our service in the OS keychain. Overwrites any previous value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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