using System.Security.Claims;

namespace AiLogia.Web.Infrastructure;

public static class AuthHelpers
{
    public static bool IsLoggedIn(this ClaimsPrincipal? user)
        => user?.Identity?.IsAuthenticated == true;
}