refactor(core): encapsulate user and refresh token creation with factory methods

This commit is contained in:
Stevan Freeborn
2026-02-03 04:38:40 -06:00
parent e03cc0403a
commit c4d0bf78ab
3 changed files with 22 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ public sealed class RefreshToken : Entity
public string Token { get; init; } = string.Empty;
public DateTimeOffset ExpiresAt { get; init; }
public Guid UserId { get; init; }
public User User { get; init; } = new();
public User User { get; init; } = User.New();
private RefreshToken()
{