auth

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store handles authentication storage

func NewStore

func NewStore() *Store

NewStore creates a new auth store Uses the same paths as the Node.js CLI for compatibility

func (*Store) ClearAuth

func (s *Store) ClearAuth() error

ClearAuth removes stored authentication

func (*Store) GetAuth

func (s *Store) GetAuth() (*StoredAuth, error)

GetAuth retrieves stored authentication

func (*Store) GetConfigPath

func (s *Store) GetConfigPath() string

GetConfigPath returns the path to the config file

func (*Store) SaveAuth

func (s *Store) SaveAuth(token, githubLogin, expiresAt string) error

SaveAuth stores authentication data

type StoredAuth

type StoredAuth struct {
	KeywayToken string `json:"keywayToken"`
	GitHubLogin string `json:"githubLogin,omitempty"`
	ExpiresAt   string `json:"expiresAt,omitempty"`
	CreatedAt   string `json:"createdAt"`
}

StoredAuth represents the stored authentication data

Jump to

Keyboard shortcuts

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