Oauth2 loop (trigger per token lifespan)

Dear Retool Team,
I use an external Api (Exact Online) for my app, with an Oauth2 protocol. (token lifespan 600 seconds, (+570 seconds tolerate)) (2 users use this app)

I would to keep a continuous token/refreshtoken workflow without a prompt.

So I set up OAuth2 parameter to my resource.
But very frequently, workflow is broken, and I need to re-authenticate

What is the best set up?

Kind Regards