using System.Security.Claims; using Moonlight.Api.Database.Entities; namespace Moonlight.Api.Interfaces; public interface IUserAuthHook { public Task SyncAsync(ClaimsPrincipal principal, User trackedUser); // Every implementation of this function should execute as fast as possible // as this directly impacts every api call public Task ValidateAsync(ClaimsPrincipal principal, int userId); }