title: Generate Token in IdentityServer4 that never expires
body: <p>I have an application (ASP.Net Core 2.2, IdentityServer4) which is working fine. Now I need to authenticate some devices or applications in my application to let them call my APIs.</p>
  
  <p>I've read these links:</p>
  
  <p><a href="https://stackoverflow.com/questions/50363450/identityserver4-access-token-lifetime">IdentityServer4 Access Token Lifetime</a></p>
  
  <p><a href="https://stackoverflow.com/questions/22309465/bearer-token-that-never-expires">Bearer token that never expires</a></p>
  
  <p>but these are not something that I need.</p>
  
  <p>I need to make some kind of authentication that never expires and I just expire that manually. What is the correct solution? Any Ideas would be appreciated.</p>