authentication

package
v0.0.0-...-d6f5fe4 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package pkce generates PKCE verifiers and challenges according to https://www.rfc-editor.org/rfc/rfc7636

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCredentialManager

func NewCredentialManager(configClientID string, configDir string) (*credentialManager, error)

func NewServer

func NewServer(c *config.Config, s *service) *server

func NewService

func NewService(c *config.Config, credManager *credentialManager) (*service, error)

NewService creates a new authentication service

func NewSpotifyClient

func NewSpotifyClient(ctx context.Context, tok *oauth2.Token, authenticator *spotifyauth.Authenticator) *spotify.Client

Types

type LoginClientMsg

type LoginClientMsg struct {
	Client *spotify.Client
}

type LoginErrorMsg

type LoginErrorMsg struct {
	Error error
}

type LoginUrlMsg

type LoginUrlMsg struct {
	Url string
}

Jump to

Keyboard shortcuts

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