Backend login and register
This commit is contained in:
10
src/Application/Interfaces/IJwtService.cs
Normal file
10
src/Application/Interfaces/IJwtService.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using Domain.Entities;
|
||||
|
||||
namespace Application.Interfaces;
|
||||
|
||||
public interface IJwtService
|
||||
{
|
||||
Task<string> GenerateTokenAsync(User user);
|
||||
Task<string> GenerateAndSaveRefreshTokenAsync(User user);
|
||||
Task<User?> ValidateRefreshTokenAsync(int userId, string refreshToken);
|
||||
}
|
||||
Reference in New Issue
Block a user