adjust auth cookie timeout to 12 hours

This commit is contained in:
Ryan Peters 2023-06-09 23:23:33 -04:00
parent 013f0c03ac
commit b5e590f50a

View File

@ -17,6 +17,7 @@ builder.Services.AddSession(options =>
builder.Services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(o =>
{
o.LoginPath = "/login";
o.Cookie.MaxAge = TimeSpan.FromHours(12);
});
var app = builder.Build();