skantravels/API/Persistence/Repositories/IUserRepository.cs
Sandertp 0792862f25
Implement Refresh Token on startup
Co-authored-by: Reimar <mail@reim.ar>
2024-09-02 15:45:21 +02:00

15 lines
479 B
C#

using API.Models;
namespace API.Persistence.Repositories
{
public interface IUserRepository
{
Task<string> CreateUserAsync(User user);
Task<bool> DeleteUserAsync(string id);
Task<List<User>> QueryAllUsersAsync();
Task<User> QueryUserByIdAsync(string id);
Task<User> QueryUserByEmailAsync(string email);
Task<bool> UpdateUserAsync(User user);
Task<User> QueryUserByRefreshTokenAsync(string refreshToken);
}
}