.net core 3.1 使用 AddJwtBearer 提示未包含AddJwtBearer定义,并找不到扩展方法AddJwtBearer的问题
services.AddAuthentication(…). AddJwtBearer(…)
nuget
install-package Microsoft.AspNetCore.Authentication.JwtBearer
.net core 3.1可安装3.0.22版本,更高版本不兼容
.net core 3.1 使用 AddJwtBearer 提示未包含AddJwtBearer定义,并找不到扩展方法AddJwtBearer的问题
services.AddAuthentication(…). AddJwtBearer(…)
nuget
install-package Microsoft.AspNetCore.Authentication.JwtBearer
.net core 3.1可安装3.0.22版本,更高版本不兼容