使用下面的代码登录时,如何更新Cookie过期时间
var result = await _signInManager.PasswordSignInAsync(userName, password, isPersistent, lockoutOnFailure);
就像可以与SingInAsyn一起使用
var authProps = new AuthenticationProperties
{
IsPersistent = isPersistent,
ExpiresUtc = DateTimeOffset.UtcNow.AddMinutes(5)
};
await _signInManager.SignInAsync(user, authProps, authenticationMethod);
找不到通过authenticationProperties的方法,但是下面的代码有效。需要重写SingInManager类的SignInWithClaimsAsync方法