在使用.NET Core Web API引入JwtBearer时出现这个错误,.NET Core版本是3.1 解决方法是:导入版本低于3.1.11的JwtBearer,亲测有效
dotnet add package Microsoft.AspNetCore.Authentication.JwtBearer -v 3.1.10