Does access token obtained with OAuth has expiration date? | Community
Skip to main content
Answered

Does access token obtained with OAuth has expiration date?

  • April 15, 2024
  • 1 reply
  • 169 views

Andrii Fedyk
Forum|alt.badge.img+1

Our application uses OAuth to get user’s access token. We noticed that after a while tokes are revoked and API calls fails with unauthorized errors. An example:

```json

{

  "type": "error.list",

  "request_id": "0003hg8qe7evlq01dqcg",

  "errors": [{ "code": "unauthorized", "message": "Access Token Invalid" }]

}

```

May I ask if access tokens obtained through OAuth have expiration date? If there a way to debug why token is invalid now?

Best answer by Andrii Fedyk

The issue solved. It looks that clients has used cached access token which was already revoked 

1 reply

Andrii Fedyk
Forum|alt.badge.img+1
  • Author
  • Active User
  • Answer
  • April 19, 2024

The issue solved. It looks that clients has used cached access token which was already revoked