After logging in with a social connection (e.g. Continue with Google), the app threw Uncaught (in promise) Error: Invalid state from handleRedirectCallback in auth0-spa-js. The login itself succeeded, but processing the redirect back failed. This happened when the redirect callback URL still carried the code and state query parameters and the callback ran more than once.