forked from xiongyuxing/tiku-backend.net
14 lines
288 B
C#
14 lines
288 B
C#
using System.Security.Claims;
|
|
|
|
namespace Tiku.Application.Security;
|
|
|
|
public interface ICurrentUser
|
|
{
|
|
Guid? UserId { get; }
|
|
Guid? SessionId { get; }
|
|
string? Phone { get; }
|
|
string? Email { get; }
|
|
bool IsAuthenticated { get; }
|
|
void Load(ClaimsPrincipal principal);
|
|
}
|