Fix comment in minimal APIs AuthN sample
Move the comment about requiring the JwtBearer package to the sample that actually uses JwtBearer.pull/28241/head
parent
b04c7cdb06
commit
63e40a0bd5
|
@ -3,7 +3,6 @@
|
|||
#elif FIRST
|
||||
// <snippet_1>
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
// Requires Microsoft.AspNetCore.Authentication.JwtBearer
|
||||
builder.Services.AddAuthentication();
|
||||
var app = builder.Build();
|
||||
|
||||
|
@ -13,6 +12,7 @@ app.Run();
|
|||
#elif JWT1
|
||||
// <snippet_jwt1>
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
// Requires Microsoft.AspNetCore.Authentication.JwtBearer
|
||||
builder.Services.AddAuthentication().AddJwtBearer();
|
||||
var app = builder.Build();
|
||||
|
||||
|
|
Loading…
Reference in New Issue