title: ASP Identity Core GeneratePasswordResetTokenAsync expired
body: <p>I have set up an Identity Server 4 project in .NET Core 2.1, I have everything working but when I use the user manager to generate the reset password token, the token expires after 24 hours, can I change this so it's 48 hours?</p>
  
  <p>My code to send the reset token looks like this:</p>
  
  <pre><code>var code = await _userManager.GeneratePasswordResetTokenAsync(user);
  
  var callbackUrl = url.EmailConfirmationLink(user.Id, code, scheme);
  </code></pre>
  
  <p>My ConfigureServices looks like this:</p>
  
  <pre><code>   services.AddIdentity&lt;ApplicationUser, IdentityRole&gt;(config =&gt;
          {
              config.SignIn.RequireConfirmedEmail = true;
          })
              .AddEntityFrameworkStores&lt;ApplicationDbContext&gt;()
              .AddDefaultTokenProviders();
  </code></pre>
  
  <p>Thanks :)</p>