Hi,
I'm using Javascript Preview SDK
https://cdn01.boxcdn.net/platform/preview/0.96.0/en-US/preview.js
https://cdn01.boxcdn.net/platform/preview/0.96.0/en-US/preview.css
I've used below method to preview multiple files,
Box.Preview.show(fileId, accessToken, {
container: '.preview-container',
sharedLink: 'https://app.box.com/v/foo',
sharedLinkPassword: 'bar',
collection: [fileId, '123', '234', ...],
header: 'light',
logoUrl: 'http://i.imgur.com/xh8j3E2.png',
showDownload: true,
});When access token expired i'm getting error like "We're sorry, the preview didn't load. Please refresh the page."
How can I catch, access token expired moment. So that I can call new access token api.
Thanks in advance.