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