Refreshing an access token


(Ben) #1

Hi,
I have an access token asset which is being used by a rest asset. This rest asset is called by client side JS to render out some HTML. All works fine if I visit the page, but if anyone else does the access token doesn’t get refreshed. I can see you can change this token storage from “session” which it’s currently on to
Global permanent which see like it would do the job, but a user needs write access for this. So what’s the best way so anyone visiting the page will generate a new token if it’s expired. Do i need to setup a trigger/cron task?

Thanks