auth

package
v0.5.0-beta Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthURL  = "https://accounts.spotify.com/authorize"
	TokenURL = "https://accounts.spotify.com/api/token"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

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

func New

func New() *Authenticator

func (Authenticator) Client

func (authenticator Authenticator) Client(ctx context.Context, token *oauth2.Token) *http.Client

func (Authenticator) GetAuthURL

func (authenticator Authenticator) GetAuthURL(state string) string

func (Authenticator) GetToken

func (authenticator Authenticator) GetToken(ctx context.Context, state string, r *http.Request) (*oauth2.Token, error)

Jump to

Keyboard shortcuts

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