using Knoks.Api.Entities;
using Microsoft.AspNetCore.Authorization;
using static Knoks.Api.Authentication.IdentityConsts;

namespace Knoks.Api.Controllers.Base
{
    [Authorize(ApiUserPolicy)]
    public abstract class UserController : ApiBaseController
    {
        protected ApiConsumer ApiConsumer => ContextApiConsumer;
        protected long UserId => ContextUserId.Value;
    }
}
