13 lines
243 B
C#
13 lines
243 B
C#
|
|
using Domain.Entities;
|
||
|
|
|
||
|
|
namespace Application.Auth;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Service for JWT token generation and validation.
|
||
|
|
/// </summary>
|
||
|
|
public interface IJwtService
|
||
|
|
{
|
||
|
|
string GenerateToken(User user);
|
||
|
|
int? ValidateToken(string token);
|
||
|
|
}
|