It looks like you're new here. If you want to get involved, click one of these buttons!
setSessionHook
setSessionHook(() => { console.log('session expired. login again')})
setSessionHook
accepts a callback function. You can try something like: