adjust auth cookie timeout to 12 hours
This commit is contained in:
parent
013f0c03ac
commit
b5e590f50a
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user