Updeted Session Model and Session Opener Service

renamed RefreshToken in model to RefreshTokenHash - now we have a hash of token, not a token
This commit is contained in:
Artemy
2025-12-14 14:03:18 +07:00
parent 0ad6b52de5
commit cc2921d257
18 changed files with 1153 additions and 191 deletions
@@ -12,7 +12,7 @@ public class UserSessionConfiguration : IEntityTypeConfiguration<UserSession>
{
builder.HasKey(us => us.Id);
builder.Property(us => us.RefreshToken)
builder.Property(us => us.RefreshTokenHash)
.IsRequired();
builder.Property(us => us.DeviceInfo)