13 lines
534 B
C#
13 lines
534 B
C#
using Liber_Incantamentum.Application.Authentification.DTOs.Request;
|
|
using Liber_Incantamentum.Application.Authentification.DTOs.Response;
|
|
using Liber_Incantamentum.Domain.Authentification.Entities;
|
|
|
|
namespace Liber_Incantamentum.Application.Authentification.Interfaces
|
|
{
|
|
public interface ITokenService
|
|
{
|
|
Task<AuthResponseDto> GenerateTokensAsync(User user); // génère et stocke refresh token
|
|
Task<AuthResponseDto?> RefreshTokensAsync(RefreshTokenRequestDto request); // vérifie et renouvelle
|
|
}
|
|
}
|