12 lines
308 B
C#
12 lines
308 B
C#
|
using Renis.Database.Models;
|
||
|
|
||
|
namespace Renis.Services.Jwt;
|
||
|
|
||
|
public interface IJwtService
|
||
|
{
|
||
|
string GenerateAccessToken(User user);
|
||
|
string GenerateRefreshToken(User user);
|
||
|
Tuple<bool, string> ValidateAccessToken(string? token);
|
||
|
Task<Tuple<bool, string>> ValidateRefreshToken(string? token);
|
||
|
}
|