mirror of
https://github.com/skidoodle/spotify-ws
synced 2025-10-09 05:22:43 +02:00
fix env
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user