renis-backend/Services/Jwt/IJwtService.cs

12 lines
308 B
C#
Raw Normal View History

2024-09-07 10:34:38 +00:00
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);
}