Files
flatrender/services/identity/FlatRender.IdentitySvc/Application/Services/Interfaces/ITokenService.cs
T

13 lines
395 B
C#
Raw Normal View History

using FlatRender.IdentitySvc.Domain.Entities;
namespace FlatRender.IdentitySvc.Application.Services.Interfaces;
public interface ITokenService
{
string GenerateAccessToken(User user, Tenant tenant);
string GenerateRefreshToken();
string HashToken(string token);
(Guid userId, Guid tenantId, bool isAdmin) ValidateAccessToken(string token);
string GenerateServiceToken();
}