React invalid state error returned instead of unauthorized

When getting this redirect that that I set up with rules I get invalid state as the error instead of the actual error returned.

The redirected URL:

in const { isAuthenticated, error, logout } = useAuth0() the error is invalid state instead of the expected unauthorized.