login5

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPError added in v0.10.3

type HTTPError struct {
	StatusCode int
	Body       string
}

HTTPError reports a login5 response that is not a LoginResponse: an error page from Spotify's edge, such as the 503 of an outage.

func (*HTTPError) Error added in v0.10.3

func (e *HTTPError) Error() string

func (*HTTPError) Retryable added in v0.10.3

func (e *HTTPError) Retryable() bool

Retryable reports whether the request may succeed when repeated: server errors and rate limiting are transient, other statuses are not.

type Login5

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

func NewLogin5

func NewLogin5(log librespot.Logger, client *http.Client, deviceId, clientToken string) *Login5

func (*Login5) AccessToken

func (c *Login5) AccessToken() librespot.GetLogin5TokenFunc

func (*Login5) Login

func (c *Login5) Login(ctx context.Context, credentials proto.Message) error

func (*Login5) StoredCredential

func (c *Login5) StoredCredential() []byte

func (*Login5) Username

func (c *Login5) Username() string

type LoginError added in v0.2.0

type LoginError struct {
	Code pb.LoginError
}

func (*LoginError) Error added in v0.2.0

func (e *LoginError) Error() string

Jump to

Keyboard shortcuts

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