Is there an event that occurs on token_id expiration/session timeout for Angular2 with Auth0 Lock?

I am looking to redirect our app back to the login page when the session expires/the ID_token time outs. Currently our when the session times out the app will not redirect. Are there any recommendations for how to handle this from an Auth0 perspective? I would like to avoid polling on an interval if possible.

There is no event available for the scenario you describe. I’m not overly familiar with Angular2, but if you store the ID token in local storage you can check its expiration either each time the user makes a relevant action (for example, navigating to another view) or you could just go with checking at regular intervals like you mentioned, which technically has nothing wrong with it unless you try to do it at really short intervals.