title: Shorter Email Token - Asp Identity
body: <p>I need to create an emailtoken for authentication. Using the default functionality is not an option as the emailtoken expires rather quick.</p>
  
  <p>Using following code I managed to extend the tokenlifetime, but this generates a very long and complex token. Is it possible to generate a six digits token with an extended lifetime?</p>
  
  <pre><code>var dataProtector = dataProtectionProvider.DataProtectionProvider.Create("My Asp.Net Identity");
  userManager.UserTokenProvider = new DataProtectorTokenProvider&lt;ApplicationUser, string&gt;(dataProtector)
  {
      TokenLifespan = TimeSpan.FromHours(24)
  };
  </code></pre>
  
  <p>Source:
  <a href="https://stackoverflow.com/questions/27152612/email-token-expiring-after-15-mins-asp-identity-2-0-api">Email Token Expiring After 15 mins - Asp Identity 2.0 API</a></p>
  
  <p>Kind Regards,</p>
  
  <p>Brecht</p>