don't need session

This commit is contained in:
Ryan Peters 2023-06-21 10:48:57 -04:00
parent bf46dac9eb
commit c34dc876c0

View File

@ -9,11 +9,6 @@ builder.Services.AddControllersWithViews();
builder.Services.AddSignalR(); builder.Services.AddSignalR();
builder.Services.AddSingleton<INoteService, FileNoteService>(); builder.Services.AddSingleton<INoteService, FileNoteService>();
builder.Services.AddSession(options =>
{
options.IdleTimeout = TimeSpan.FromMinutes(30);
});
builder.Services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(o => builder.Services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(o =>
{ {
o.LoginPath = "/login"; o.LoginPath = "/login";