标签: blazor server-side
嗨,我已经将身份登录添加到我的项目中,此代码仅显示UserName,但我想显示用户的电话号码,该怎么办?
var authstate = await AuthenticationStateProvider.GetAuthenticationStateAsync(); var user = authstate.User; var name = user.Identity.Name;