auth

package
v0.0.0-...-6919cbf Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpotifyAuthorizationCode

type SpotifyAuthorizationCode struct {
	AccessToken  string      `json:"access_token"` // For accessing user specific data from the API
	TokenType    string      `json:"token_type"`
	Scope        string      `json:"scope"`
	ExpiresIn    json.Number `json:"expires_in"`    // Time in seconds before the access token is invalidated
	RefreshToken string      `json:"refresh_token"` // Used for refreshing the access token
}

SpotifyAuthorizationCode will be used throughout the application to make requests to the Spotify API.

func (*SpotifyAuthorizationCode) Authorize

func (s *SpotifyAuthorizationCode) Authorize() error

Authorizes gotify with the Spotify Authorization Code PKCE Flow. Further information can be found at https://developer.spotify.com/documentation/web-api/tutorials/code-pkce-flow

type SpotifyFlow

type SpotifyFlow interface {
	Authorize() error
}

Jump to

Keyboard shortcuts

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