Expiration of Auth Code and Refresh Token

Expiration of AUTH Code and Refresh Token.

Whenever I try to use the authorization code twice it expires and same thing with the refresh token i.e. it shows invalid token! in case i use it to use twice.

So is there any way from which I can use either the auth code or the refresh token multiple times.

In case there is no way then is there any limit to generate the access token.

OAuth token expires.
Which App Type (OAuth / Chatbot / JWT / Webhook)?

Which Endpoint/s?
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.

How To Reproduce (If applicable)
Steps to reproduce the behavior:

  1. Request URL / Headers (without credentials) / Body
  2. See error

Screenshots (If applicable)
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Welcome to the Developer Forum. You’re right, this is the expected flow. The auth code and refresh token can only be used once to get an access token. When implementing OAuth, you won’t need to store the authorization code; rather, you should store the current access tokens and the refresh tokens for the user. When the access token expires, use the current refresh token to request a new access token.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.