I'm trying to use the set_session_expiry_hook method to reinitiate a login. I'm able to get a new access_token, but the request which led to the TokenError and subsequently initiated the hook is never completed. I still get the TokenError for the request, and my execution is interrupted at that point.
So my question is, how does this method help me, instead of, say me catching the TokenError myself, and re-logging in to resume my execution where it last stopped?