diff --git a/src/Web/Controllers/UserController.cs b/src/Web/Controllers/UserController.cs index 4945ee2..6ce1818 100644 --- a/src/Web/Controllers/UserController.cs +++ b/src/Web/Controllers/UserController.cs @@ -24,7 +24,7 @@ public class UserController : ControllerBase [Authorize] [AllowAnonymous] public async Task GetCurrentUser() => - Ok(User.Identity.IsAuthenticated ? await CreateUserInfo(User) : UserInfo.Anonymous); + Ok(await CreateUserInfo(User)); private async Task CreateUserInfo(ClaimsPrincipal claimsPrincipal) {