14 lines
474 B
C#
Executable File
14 lines
474 B
C#
Executable File
using System.IdentityModel.Tokens.Jwt;
|
|
using GamificationService.Models.Database;
|
|
using GamificationService.Models.DTO;
|
|
|
|
namespace GamificationService.Services.JWT;
|
|
|
|
public interface IJwtService
|
|
{
|
|
string GenerateAccessToken(ApplicationUser user);
|
|
JwtSecurityToken ValidateAccessToken(string token);
|
|
Task<RefreshToken> GenerateRefreshTokenAsync(ApplicationUser user);
|
|
Task RevokeRefreshTokenAsync(long userId, string refreshToken, string remoteIpAddress);
|
|
}
|