Небольшие изменения

This commit is contained in:
2026-06-17 17:42:09 +03:00
parent da47d7fdf3
commit 067a1a6055
+2 -2
View File
@@ -29,11 +29,11 @@ builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
.AddJwtBearer(o => o.TokenValidationParameters = new()
{
ValidateIssuerSigningKey = true,
ValidateIssuer = true,
//ValidateIssuer = true,
ValidateAudience = false,
ValidateLifetime = true,
IssuerSigningKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(
authSettings.Get<AuthSettings>().SecretKey))
authSettings.Get<AuthSettings>()!.SecretKey))
});
builder.Services.AddDbContext<AppDbContext>(options =>