Implementing AuthDataCache

This commit is contained in:
Max
2024-09-27 02:38:18 +02:00
parent c092b8a679
commit 0fed89e140
9 changed files with 218 additions and 154 deletions

View File

@@ -2,5 +2,15 @@ namespace DotBased.ASP.Auth.Domains.Auth;
public class AuthenticationStateModel
{
public string Id { get; set; } = string.Empty;
public override bool Equals(object? obj)
{
if (obj is AuthenticationStateModel authStateModel)
return authStateModel.Id == Id;
return false;
}
// ReSharper disable once NonReadonlyMemberInGetHashCode
public override int GetHashCode() => Id.GetHashCode();
public override string ToString() => Id;
}