title: How can I test if my token is expired with IdentityServer4?
body: <p>I create a token with IdentityServer4 I copy this <a href="https://github.com/IdentityServer/IdentityServer4/tree/master/samples/Quickstarts/1_ClientCredentials/src" rel="nofollow noreferrer">example</a> I just modify this</p>
  
  <p>in <strong>IdentityServer</strong> -> <strong>Config</strong></p>
  
  <pre><code>public static IEnumerable&lt;Client&gt; GetClients()
  
  {
      return new List&lt;Client&gt;
      {
          new Client
          {
              ClientId = "client",
              AllowedGrantTypes = GrantTypes.ClientCredentials,
              ClientSecrets =
              {
                  new Secret("secret".Sha256())
              },
              AllowedScopes = { "TRACEITLMAPI" },
              AccessTokenLifetime = 10,
              IdentityTokenLifetime = 10 
  
          }
      };
  }
  </code></pre>
  
  <p>I wanted to test when my token will be expired.</p>