Pricing Blog

Refresh Token issue.

  • uunicode-1437782591125192736

    unicodes

    4 days ago

    As you can see from the screen shot the first time works perfectly.
    The second time the refresh token is called 4 times.

    The logic I'm using to refresh the token is the following.

    Switch - check if the refresh token is less than not + 12 minutes (timestamp).
    In case of false, just does nothing
    In case of true, refresh token and save the token and access token.

    At the end of the workflow it will call the sleep for 10 minutes and when ended call again the refresh-token.

    Why isn't working this solution?
    1437782591473324053-Screenshot_2025-11-11_at_14.28.13.png
    1437782591989219500-Screenshot_2025-11-11_at_14.29.53.png
  • keddedev-1437786002046451774

    Kedde

    4 days ago

    Hey unicodes. Are you triggering the same workflow in the interval? In that case you double the amount of executions every time. An interval will execute after a given time, then reset and do it again. So every time you run the event you start a new interval which will trigger the workflow again. If you want the interval to only run once then change it to a sleep action. Sleep will delay the execution for a period and then end after executing.
    ❤️1
  • uunicode-1437786913804390471

    unicodes

    4 days ago

    @Kedde you are so right! Thank you for you help!
    🙌1