spotify_proxyclient

package
v0.0.0-...-40e63e7 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SubtractTTL = time.Minute * 2
)

Variables

This section is empty.

Functions

func DecodeTokenString

func DecodeTokenString(tokenstr string) (*oauth2.Token, error)

Decode a base64+JSON encoded oauth2 token into a struct.

func RefreshToken

func RefreshToken(server string, client *http.Client, token *oauth2.Token) (*oauth2.Token, error)

Refresh a Spotify oauth2 token using the visp Spotify authorization proxy server.

func TokenTTL

func TokenTTL(token *oauth2.Token) time.Duration

How much time an oauth2 token has to live before it should be refreshed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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