diff --git a/ImageBoardServerApp/Auth/CustomAuthenticationStateProvider.cs b/ImageBoardServerApp/Auth/CustomAuthenticationStateProvider.cs index 86c5e5d..3234b0a 100644 --- a/ImageBoardServerApp/Auth/CustomAuthenticationStateProvider.cs +++ b/ImageBoardServerApp/Auth/CustomAuthenticationStateProvider.cs @@ -7,10 +7,11 @@ namespace ImageBoardServerApp.Auth; public class CustomAuthenticationStateProvider : AuthenticationStateProvider { - private readonly ProtectedSessionStorage _sessionStorage; + private readonly ProtectedLocalStorage _sessionStorage; + private ClaimsPrincipal _anonymous = new ClaimsPrincipal(new ClaimsIdentity()); - public CustomAuthenticationStateProvider(ProtectedSessionStorage sessionStorage) + public CustomAuthenticationStateProvider(ProtectedLocalStorage sessionStorage) { _sessionStorage = sessionStorage; }