Split creators out of identity

This commit is contained in:
Jonathan Bourdon
2024-07-31 23:29:26 -04:00
parent bbcc7a8a33
commit 2b30e1a03c
105 changed files with 1497 additions and 7490 deletions

View File

@@ -1,6 +1,5 @@
using System.Security.Claims;
using Hutopy.Application.Common.Interfaces;
using Hutopy.Application.Common.Interfaces;
using Hutopy.Web.Common;
namespace Hutopy.Web.Services;
@@ -8,5 +7,5 @@ public class CurrentUser(
IHttpContextAccessor httpContextAccessor)
: IUser
{
public string? Id => httpContextAccessor.HttpContext?.User?.FindFirstValue(ClaimTypes.NameIdentifier);
public Guid? Id => httpContextAccessor.HttpContext?.User.GetUserId();
}