# Validating expired token leads to "active" response from /introspect endpoint

**URL:** <https://devforum.okta.com/t/validating-expired-token-leads-to-active-response-from-introspect-endpoint/14796>\
**Category:** OAuth/OIDC\
**Tags:** api\
**Created:** [June 18, 2021, 2:31pm UTC](https://devforum.okta.com/t/validating-expired-token-leads-to-active-response-from-introspect-endpoint/14796 "2021-06-18T14:31:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkyeck](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/pkyeck/32/2503_2.png) [@pkyeck](https://devforum.okta.com/u/pkyeck)\
**Post date:** [June 18, 2021, 2:31pm UTC](https://devforum.okta.com/t/validating-expired-token-leads-to-active-response-from-introspect-endpoint/14796/1 "2021-06-18T14:31:12Z")

</div>

For testing purposes I reduced the time the accessToken is valid to 5min.  
But now, when trying to validate an accessToken, even though the token already expired, I get a response saying the token is still “active” …:!?

```auto
2021-06-18T14:08:37.408Z mbx:utils:oidc validateAccessToken() {
  accessToken: '<TOKEN>',
  email: '<EMAIL>',
  settings: {
    issuer: 'https://dev-5283048.okta.com/oauth2/default',
    clientId: '<CLIENT_ID>',
    redirectUrl: 'http://localhost:81/callback/oidc/authorization-code',
    clientSecret: '<CLIENT_SECRET>'
  }
}
2021-06-18T14:08:38.451Z mbx:utils:oidc {
  active: true,
  scope: 'offline_access openid',
  username: '<EMAIL>',
  exp: 1624025216, // => 2021-06-18T14:06:56.000Z
  iat: 1624024916,
  sub: '<EMAIL>',
  aud: 'api://default',
  iss: 'https://dev-5283048.okta.com/oauth2/default',
  jti: 'xxxxxx.....xxxxxx',
  token_type: 'Bearer',
  client_id: '<CLIENT_ID>',
  uid: 'xxxx.....xxxxxx'
}

```

I made the call 2021-06-18T14:08:37.408Z, got a response at 2021-06-18T14:08:38.451Z saying that the token is active but the exp says 1624025216 =\> 2021-06-18T14:06:56.000Z.  
I can also check for exp but it was my understanding, that the token should be active: false if expired.

Or is this because of time differences between my computer/server and the auth-server? But a couple of minutes?

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [June 21, 2021, 4:39pm UTC](https://devforum.okta.com/t/validating-expired-token-leads-to-active-response-from-introspect-endpoint/14796/2 "2021-06-21T16:39:17Z")

</div>

If you waited a couple of minutes, do you see a response saying `active: false` (eventually)?

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 8, 2024, 6:32pm UTC](https://devforum.okta.com/t/validating-expired-token-leads-to-active-response-from-introspect-endpoint/14796/3 "2024-02-08T18:32:25Z")

</div>

Closed on February 8, 2024, 6:32pm UTC


