Forced email verification created endless login loop

I’ve created a rule which forces email verification before logging in. The template I’ve used is the one in the docs here - Verify Emails using Auth0

What happens when a user hasn’t verified their address, is an endless loop where the page constantly refreshes and changes. I thought the default behaviour was to log the user out?

The issue is the same as this topic - Force email verification rule does not give error message

I’m using the auth0-spa-js package, with VueJS and a Universal Login page.

Am I supposed to be handling this error in the application, and if so - are there any tutorials on implementing this? I thought this was all handled by auth0?