added log checking

This commit is contained in:
2025-11-22 11:40:18 +00:00
parent 8ed08d8f3d
commit d9fceaf94a

View File

@@ -12,6 +12,7 @@ import (
func InitSpotify() (*spotify.Client, error) { func InitSpotify() (*spotify.Client, error) {
ctx := context.Background() ctx := context.Background()
log.Fatal("Tets")
// redirectURI := os.Getenv("SPOTIFY_REDIRECT_URI") // redirectURI := os.Getenv("SPOTIFY_REDIRECT_URI")
clientID := os.Getenv("SPOTIFY_CLIENT_ID") clientID := os.Getenv("SPOTIFY_CLIENT_ID")
@@ -25,7 +26,7 @@ func InitSpotify() (*spotify.Client, error) {
token, err := config.Token(context.Background()) token, err := config.Token(context.Background())
if err != nil { if err != nil {
log.Fatalf("couldn't get token: %v", err) return nil, err
} }
httpClient := spotifyauth.New().Client(ctx, token) httpClient := spotifyauth.New().Client(ctx, token)