auth

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadToken

func LoadToken() (*oauth2.Token, error)

func Login

func Login(a *spotifyauth.Authenticator, redirectURL string) (*oauth2.Token, error)

func NewAuthenticator

func NewAuthenticator(clientID, redirectURL string) *spotifyauth.Authenticator

func NewSavingClient

func NewSavingClient(a *spotifyauth.Authenticator, token *oauth2.Token) *http.Client

NewSavingClient creates an HTTP client that auto-refreshes OAuth tokens and persists them to disk on each refresh.

func SaveToken

func SaveToken(token *oauth2.Token) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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