AuthCookieAspNetCore https://www.red-gate.com/simple-talk/dotnet/net-development/using-auth-cookies-in-asp-net-core/