async Task<string> GenerateJwtTokenAsync(User user)

This commit is contained in:
Artemy
2025-07-02 15:26:27 +07:00
parent 0967fe1b4e
commit 0669614a5e
13 changed files with 131 additions and 22 deletions
@@ -26,4 +26,11 @@ public class UsersService : IUsersAdministration
return new List<User>();
}
}
public async Task<User> GetUserById(Guid userId)
{
var result = await _usersRepository.FindByIdAsync(userId);
return result;
}
}
@@ -4,5 +4,5 @@ namespace Govor.API.Services.Authentication.Interfaces;
public interface IJwtService
{
string GenerateJwtToken(User user);
Task<string> GenerateJwtTokenAsync(User user);
}
@@ -5,4 +5,5 @@ namespace Govor.API.Services.AdminsStuff.Interfaces;
public interface IUsersAdministration
{
Task<List<User>> GetAllUsersAsync();
Task<User> GetUserById(Guid userId);
}