We use the below configuration:
.AddAuthentication(JwtBearerDefaults.AuthenticationScheme) .AddJwtBearer(options => {