Versions in this module Expand all Collapse all v0 v0.1.1 Sep 16, 2023 v0.1.0 Sep 15, 2023 Changes in this version + var ErrAccountNotFound = errors.New("no such account") + var ErrInvalidType = errors.New("invalid account type") + var ErrNoCredentials = errors.New("no credentials found") + type Account struct + Profile struct{ ... } + Source interface{} + Type Type + UUID string + func (a *Account) UnmarshalJSON(data []byte) error + type Credentials struct + AccessToken string + RefreshToken string + TokenExpiration time.Time + type Keychain interface + Get func(key string) (*Credentials, error) + Set func(key string, credentials *Credentials) error + func NewKeychain(dataDir string, useSystemKeyring bool) Keychain + type MSOBeginPolling func() + type MSOPromptCallback func(verificationUrl, userCode string) + type Manager interface + Accounts func() []string + GetAccount func(value string) *Account + GetAccountToken func(value string) (string, error) + GetDefault func() string + LoginMicrosoft func(promptCallback MSOPromptCallback) (*Account, error) + Save func() error + SetDefault func(uuid string) error + func NewManager(dataDir string, config *config.Config) (Manager, error) + type MicrosoftTokenData struct + UserHash string + type Type string + const Microsoft + const Mojang + func ParseType(s string) (Type, error)