We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aea4e3 commit 1876a10Copy full SHA for 1876a10
SpotifyAPI.Web.Examples/Example.CLI.CustomHTML/Program.cs
@@ -16,6 +16,13 @@ public class Program
16
17
public static async Task Main()
18
{
19
+ if (string.IsNullOrEmpty(clientId) || string.IsNullOrEmpty(clientSecret))
20
+ {
21
+ throw new NullReferenceException(
22
+ "Please set SPOTIFY_CLIENT_ID and SPOTIFY_CLIENT_SECRET via environment variables before starting the program"
23
+ );
24
+ }
25
+
26
_server = new EmbedIOAuthServer(
27
new Uri("http://localhost:5000/callback"),
28
5000,
0 commit comments