Thanks for the answers everyone. Is the attached a better solution? On my homepage when user is logged in and token expires it schedules a backend API workflow.
Should this only trigger from the homepage or every page? Is there a way to test these workflows to check I get the right data back and the trigger works?