Add Login Module
This commit is contained in:
18
AMREZ.EOP.Domain/Entities/Authentications/RefreshToken.cs
Normal file
18
AMREZ.EOP.Domain/Entities/Authentications/RefreshToken.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using AMREZ.EOP.Domain.Entities.Common;
|
||||
|
||||
namespace AMREZ.EOP.Domain.Entities.Authentications;
|
||||
|
||||
public sealed class RefreshToken : BaseEntity
|
||||
{
|
||||
public string FamilyId { get; set; } = default!;
|
||||
public string RefreshTokenHash { get; set; } = default!;
|
||||
|
||||
public Guid UserId { get; set; }
|
||||
public Guid SessionId { get; set; }
|
||||
|
||||
public DateTimeOffset ExpiresAt { get; set; }
|
||||
public DateTimeOffset? RevokedAt { get; set; }
|
||||
|
||||
public User User { get; set; } = default!;
|
||||
public UserSession Session { get; set; } = default!;
|
||||
}
|
||||
Reference in New Issue
Block a user