I have two sites created with Create-React-App using React-Router-4.
Each site is using the same Single Page Application client on the same Auth0 account. I followed the Auth0 react example and have a separate class for auth0-js v8 functionality. The sites can login and authorize between the two.
I am trying to get site2.mydomain.com to automatically logout the user when the user logged out of site1.mydomain.com. The logout is executed by calling the logout() method on the webAuth api. I see some examples of using renewAuth to check to see if the user has logged out of Auth0. I am not sure how to properly implement the auto logout functionality. I noticed an example of using a setInterval to periodically check renewAuth(). Any tips or examples of this functionality in React would be greatly appreciated.