Refactor user command handlers and update JWT token logic
This commit is contained in:
@@ -31,8 +31,8 @@ public static class ConfigureServices
|
||||
jwtBearerOptions.RequireHttpsMetadata = false;
|
||||
jwtBearerOptions.TokenValidationParameters = new TokenValidationParameters
|
||||
{
|
||||
ValidateIssuer = true,
|
||||
ValidateAudience = true,
|
||||
ValidateIssuer = false,//todo change to true in production
|
||||
ValidateAudience = false,//todo change to true in production
|
||||
ValidateLifetime = true,
|
||||
ValidateIssuerSigningKey = true,
|
||||
ValidIssuer = configuration["JwtIssuer"],
|
||||
|
||||
Reference in New Issue
Block a user