mirror of
https://github.com/ryzij/AMessanger-Server.git
synced 2026-09-18 19:25:38 +00:00
Add JwtService
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
using AMessanger.Core.Models;
|
||||
|
||||
namespace AMessanger.Core.Abstraction;
|
||||
|
||||
public interface IJwtService
|
||||
{
|
||||
public string GenerateToken(User user);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace AMessanger.Core.Models;
|
||||
|
||||
public class User(Guid id, string name, string hashedPassword)
|
||||
{
|
||||
public Guid Id { get; private set; } = id;
|
||||
public string Name { get; set; } = name;
|
||||
public string HashedPassword { get; set; } = hashedPassword;
|
||||
}
|
||||
Reference in New Issue
Block a user