How do I find out how much time remaining for the user to be authenticated in the asp core (I gave a good search on the internet but could not find the remaining time of the user, I wanted to set a timer for the user to view the time remaining to expire the user).
Coockie setup:
services.AddAuthorization(options =>
{
})
.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
.AddCookie(options =>
{
options.LoginPath = "/Login/Login/";
options.AccessDeniedPath = "/Home/Error";
options.ExpireTimeSpan = TimeSpan.FromHours(3);
});;