login5

package
v0.10.7 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: GPL-3.0 Imports: 19 Imported by: 3 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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