Api/Netina.Repository/Abstracts/ICurrentUserService.cs

16 lines
407 B
C#
Raw Normal View History

using System.IdentityModel.Tokens.Jwt;
2024-04-16 20:01:34 +03:30
using Netina.Common.Models;
2024-04-16 20:01:34 +03:30
namespace Netina.Repository.Abstracts;
2023-12-16 20:25:12 +03:30
public interface ICurrentUserService : IScopedDependency
{
string? UserId { get; }
string? RoleName { get; }
string? UserName { get; }
2024-02-08 18:56:56 +03:30
string? DeviceId { get; }
bool IsAuthorized { get; }
JwtSecurityToken? JwtToken { get; }
public List<string>? Permissions { get; }
2023-12-16 20:25:12 +03:30
}