Posted on 20/01/2026 04:19:01
OK Clear
When login through OTP to the frontend, its logout with in 20-30min
is there anyway to increase that. we used ExternalLoginProvider
public override ExternalLoginResult GetLoginResult()
{
var loginResult = new ExternalLoginResult();
loginResult.Success = true;
loginResult.ProviderID = ProviderID;
loginResult.DefaultUserName = user.UserName;
loginResult.ProviderKey = user.ID.ToString();
return loginResult;
}
public override void Login()
{
OnlyDoVerificationExternally = true;
AuthenticationProperties properties = new AuthenticationProperties() { RedirectUri = RedirectUrl, AllowRefresh = true, ExpiresUtc = DateTime.UtcNow.AddHours(8), IssuedUtc = DateTime.UtcNow, IsPersistent = true };
System.Web.HttpContext.Current.GetOwinContext().Authentication.Challenge(properties, Name);
}