Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfowl committed Jul 13, 2023
1 parent d25547d commit c591740
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions TodoApi/Authentication/AuthenticationExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,7 @@ public static class AuthenticationExtensions
{
public static WebApplicationBuilder AddAuthentication(this WebApplicationBuilder builder)
{
builder.Services.AddAuthentication().AddBearerToken(o =>
{
o.Events = new()
{
OnMessageReceived = context =>
{
return Task.CompletedTask;
}
};
});
builder.Services.AddAuthentication().AddBearerToken();

return builder;
}
Expand Down

0 comments on commit c591740

Please sign in to comment.