โ09-12-2022 10:36 AM
Hi everyone,
We ran into an issue, I have setup connection with client id and client secret which will give me access token to call APIs, now the issue is after 24 hours the token was expired. So now I am not able to run my recipe without reconnecting my connection.
I have also setup refresh token logic in connector sdk code but somehow it is not working.
Can anyone help me with this? Does anyone found similar problem like setting up main token for 24hrs and then used refresh token for further API calls.
Thanks in advance.
โ09-12-2022 10:42 AM
Can you please provide more information how you are trying to refresh your token?
On my side I have implemented the following:
refresh_on: [401] (whatever code the API is returning when authentication is failing)
โ09-12-2022 11:30 AM
Have you did that in sdk code? can you send me the code which I can use on my api calls?
โ09-12-2022 10:58 AM
Could you share the link or the screenshot of the recipe here for a better understanding?
โ09-12-2022 11:29 AM
I don't have a screenshot with me right now but I got error at recipe level. I'll provide you when on next attempt I'll get error which is after 24hrs.