Invalid token, state does not match

I tried a different way of setting up the variables as suggested here https://github.com/auth0/auth0.js/issues/777 and it worked!!

Basically, my callback code changed to callbackUrl: window.location.origin + '/callback'