Issue with Forge OAuth 2.0 App - 401 Error After a Few Hours

I am experiencing an issue with an OAuth 2.0 app developed in Forge. After successfully establishing a connection with Confluence, the application works as expected, but after a few hours, I encounter a 401 error.

Thank you in advance for your help.

Best regards,
Adrian Wolf

Hi @AdrianWolf, can you please provide a bit more context on how your app works and how the error surfaces for you? In particular it would help if you could provide me with traceIds for requests that fail.
I know that you’ve mentioned you are developing a OAuth2.0 app in Forge, but if you have an OAuth2.0/3LO app, then you will need to refresh access tokens periodically as they expire.