AccessToken Invalidates After Automatic Update in Webhook

I encountered a problem while developing my Shopify app. When a webhook is triggered, the Shop’s session is automatically updated intermittently, causing the access token to suddenly expire unexpectedly. Manually opening the app in the admin browser and updating the access token resolved the issue. Since everything is automated, the invalid access token is causing functionality problems. Has anyone else encountered this issue?

My shopify.server.js settings are:
future: {
expiringOfflineAccessTokens: true,

},

image