initial commit from an older template
This commit is contained in:
13
Services/JWT/IJWTService.cs
Executable file
13
Services/JWT/IJWTService.cs
Executable file
@@ -0,0 +1,13 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user