adding jwt tokens

This commit is contained in:
2025-11-25 16:03:05 +00:00
parent cc84ef6a13
commit 0466d9d288
8 changed files with 111 additions and 25 deletions

View File

@@ -70,7 +70,7 @@ func LoadSpotifyToken(path string) (*oauth2.Token, error) {
return tok, nil
}
func InitSpotifyAuth(config SpotifyConfig) (*spotifyauth.Authenticator, *spotify.Client) {
func InitSpotifyAuth(config *SpotifyConfig) (*spotifyauth.Authenticator, *spotify.Client) {
auth := spotifyauth.New(
spotifyauth.WithRedirectURL(config.RedirectURL),
spotifyauth.WithClientID(config.ClientID),