This commit is contained in:
2025-10-03 02:27:16 +02:00
parent d9707fb55f
commit 48b88892b5
2 changed files with 3 additions and 14 deletions

View File

@@ -31,9 +31,9 @@ func Load() (*Config, error) {
cfg := &Config{}
cfg.Spotify.ClientID = os.Getenv("SPOTIFY_CLIENT_ID")
cfg.Spotify.ClientSecret = os.Getenv("SPOTIFY_CLIENT_SECRET")
cfg.Spotify.RefreshToken = os.Getenv("SPOTIFY_REFRESH_TOKEN")
cfg.Spotify.ClientID = os.Getenv("CLIENT_ID")
cfg.Spotify.ClientSecret = os.Getenv("CLIENT_SECRET")
cfg.Spotify.RefreshToken = os.Getenv("REFRESH_TOKEN")
if cfg.Spotify.ClientID == "" || cfg.Spotify.ClientSecret == "" || cfg.Spotify.RefreshToken == "" {
return nil, fmt.Errorf("spotify credentials are not set")