Auth0 Home Blog Docs

Invalid token - login via cypress

Hi,

I have followed this guide trying to login to auth0 via cypress.
I did exacly as the guide says but unfortunately I get the following error on the auth0.parseHash function:
{error: "invalid_token", errorDescription: "Cannot read property 'state' of null"}

I saw the following post that claims that works around this issue, but I am using the new Universal Login and dont want to switch back to the classic version.

General information:
I disabled the chrome security and I am using a custom domain.

How can i solve this issue with the new universal login?

Thank you.