Problem with token expiration on auth0 integration

I’m experiencing an issue related to token expiration when using the Auth0 integration.

The problem occurs when the token expires. In this case, on the WeWeb frontend, the user still has access to private pages. As a result, the page loads with errors because API calls fail due to the invalid token. This puts the app in a kind of locked state, as the user is neither logged out nor redirected to the login page.

I’ve seen similar discussions, but they were related to Xano Auth.

Could this be a bug?
I believe the expected behavior should be to redirect the user to the login page once the token is no longer valid. This redirection works when a user logs out or tries to access a private page without a token, but in the case of token expiration, the user remains “logged in” and is not redirected as expected.

Am I missing something here?