Error: Invalid state after organisation invite redirect

I do not know what I am doing wrong here. I have set everything up to send a user an invitation link to my app with a specific login route. After finishing the “Password” step from the organisation invite step, the user gets redirected to the appropriate application endpoint, including the code and state parameter. However, the login fails with the

Invalid state in handleRedirect


If I catch the auth0 error and force a loginWithRedirect, the user gets properly logged in.

Any ideas? Thanks! :raised_hands: