I decided to share my issue on this platform since the support from Linnworks is virtually non-existent.
My dilemma involves a private embedded app created within Linnworks that showcases orders in spreadsheet format. The app, constructed using Vue.js and axios for data retrieval from Linnworks APIs, works flawlessly except for one aspect - it only displays 100 orders at a time for efficiency purposes.
To address this limitation, I added a "load more orders" button that appends an additional 100 orders to the existing sheet. However, after a period of inactivity, this action triggers a "401 unauthorised error" due to token expiration.
Since the embedded app retains the token in the src attribute of the iframe during initialization, the expired token remains unchanged, leading to authorization issues.
<iframe src="https://example.com/sheet.html?token=9b11e8ff-4791-aca5-b58d-f6da84e996a6"></iframe>
Is there a method to obtain a refreshed token without reloading the entire app?