How to automatically refresh, and reuse access tokens using nextJS?

Hi @KevinM,

I recommend using refresh tokens to get new access tokens without user interaction. Then to use these access tokens automatically, you can pass in the refresh: true option in the request.

Please review this solution as a reference.

Let me know if you have any questions.

Thanks,
Rueben