Versions in this module Expand all Collapse all v0 v0.1.0 Feb 17, 2026 Changes in this version + const DefaultClientID + const DefaultPlatform + const DefaultProduct + const DefaultTimeout + const DefaultVersion + const PlexTVURL + const StatusCreated + const StatusOK + var ErrAuthFailed = fmt.Errorf("authentication failed") + var ErrInvalidCredentials = fmt.Errorf("invalid username or password") + var ErrInvalidToken = fmt.Errorf("invalid or expired token") + var ErrNoCredentials = fmt.Errorf("no authentication credentials provided") + func GetToken(ctx context.Context, cfg config.Config) (string, error) + func GetTokenAndStore(ctx context.Context, cfg config.Config) (string, error) + type AuthMethod interface + Authenticate func(ctx context.Context) (string, error) + Name func() string + type AutoAuth struct + func NewAutoAuth(cfg config.Config) *AutoAuth + func NewAutoAuthWithClientID(cfg config.Config, clientID string) *AutoAuth + func (a *AutoAuth) Authenticate(ctx context.Context) (string, error) + func (a *AutoAuth) Name() string + type PasswordAuth struct + func NewPasswordAuth(username, password string) *PasswordAuth + func NewPasswordAuthWithClientID(username, password, clientID string) *PasswordAuth + func (p *PasswordAuth) Authenticate(ctx context.Context) (string, error) + func (p *PasswordAuth) Name() string + type TokenAuth struct + func NewTokenAuth(token string) *TokenAuth + func (t *TokenAuth) Authenticate(ctx context.Context) (string, error) + func (t *TokenAuth) Name() string