13 lines
427 B
C#
13 lines
427 B
C#
using System.Security.Claims;
|
|
using Moonlight.Api.Database.Entities;
|
|
|
|
namespace Moonlight.Api.Interfaces;
|
|
|
|
public interface IUserAuthHook
|
|
{
|
|
public Task<bool> 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<bool> ValidateAsync(ClaimsPrincipal principal, int userId);
|
|
} |