Asp.net – In Asp dot net 6 SignInAsync is not working. It fails to set the cookie value for authorization
Here is the code inside login method: await HttpContext.SignInAsync( CookieAuthenticationDefaults.AuthenticationScheme, new ClaimsPrincipal(identity), new AuthenticationProperties { IsPersistent = true, AllowRefresh = true, ExpiresUtc = DateTimeOffset.UtcNow.AddHours(10), }); return RedirectToAction("Index", "UserDashBoard");