问题详情
将一个项目从 ASP.NET Core 9.0 升级至 ASP.NET Core 10.0,并且更新了所有 nuget 包,下面的代码出现 build 错误
public string ExternalAvatarUrl => Principal.FindFirstValue(JwtClaimTypes.Picture);
错误信息如下
The name 'JwtClaimTypes' does not exist in the current context
回答
问题补充:
在 .NET 9 中,JwtClaimTypes 是在 IdentityModel 6.0 中定义的
版权:言论仅代表个人观点,不代表官方立场。转载请注明出处:https://www.stntk.com/question/2515.html
还没有评论呢,快来抢沙发~