How to enable auto logout from Angular when id_token had expired

Hi Everyone.

I am integrating Auth0 into Angular app. I follow this guide Auth0 Angular SDK Quickstarts: Login and wondering how to implement auto logout after id_token had expired.

For example, if I set id_token expiration time to 24 hr. then user must re-login every 24 hr.