Hi Kakao Dev team,
The issued access token will expire in a validity period (6 hours), so we need to refresh the access token by calling an API as Kakao provides in the document here REST API | Kakao Developers REST API
In order to re-issue a new access token I need to get the authorization code, I followed this document REST API | Kakao Developers REST API to obtain the authorization code but it doesn’t work for me.
It always responds with the status 200 OK and the login form without any errors although you pass an incorrect client_id.
Is the refresh token valid for 1 month?
So in order to refresh the access token we need to do the following steps:
Get the authorization code manually ( do every 1 month when the refresh token expires) → 2. call the refresh token every 6 hours → 3. Receive the new access token
The refresh token is valid for 2 months.
However, if you request a token renewal after one month, the refresh token will also be renewed. If the refresh_token is delivered in the response, the refresh token must be replaced.
Get the authorization code manually ( do every 1 month when the refresh token expires) → 2. call the refresh token every 6 hours → 3. Receive the new access token (Update refresh token if Refresh_token is present in response)