diff --git a/SlackNet.EventsExample/Startup.cs b/SlackNet.EventsExample/Startup.cs index b7fb03f..284666e 100644 --- a/SlackNet.EventsExample/Startup.cs +++ b/SlackNet.EventsExample/Startup.cs @@ -45,7 +45,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env) if (env.IsDevelopment()) app.UseDeveloperExceptionPage(); - app.UseSlackNet(c => c.VerifyWith(Configuration["Slack:VerificationToken"])); + app.UseSlackNet(c => c.UseSigningSecret(Configuration["Slack:SigningSecret"])); app.UseMvc(); } diff --git a/readme.md b/readme.md index dd32d5a..8fa6969 100644 --- a/readme.md +++ b/readme.md @@ -77,7 +77,7 @@ public void ConfigureServices(IServiceCollection services) public void Configure(IApplicationBuilder app, IHostingEnvironment env) { - app.UseSlackNet(c => c.VerifyWith("")); + app.UseSlackNet(c => c.UseSigningSecret("")); } ```