handleRedirectCallback invalid state

I have now tried everything I could find on how to resolve my problem. But I keep getting the same error Invalid state after a successful login and redirection back to my application.

So far, I narrowed it down to be handleRedirectCallback function that gives me the error, but I am not able to find out why I get the error.

This is the code used to initialize auth0 into my Vue application.
image

And this is the code used to handle the callback after redirection back from auth0

I found a solution.
For some reason, I had to set the cacheLocation inside the createAuth0. But after setting that, I also did not need to handle the redirect callback with the handleRedirectCallback.

Thanks for sharing that with the rest of community!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.