Auth0 Home Blog Docs

Use UniversalLogin to redirect to our other site error

Hello all,

We have this setup:

We wan to implement this auth flow

1.- User opens oursite.com
2.- Clicks a button that calls auth0-js and opens auth.oursite.com with redirect_uri: ‘app.oursite.com
3.- User logs in / sign up correctly and its redirected to app.oursite.com
4.- app.oursite.com is able to parse auth info from the hash and acts as if user has logged in from app.oursite.com

Everything works until 4, where the handleAuthentication callback gives us this error:

{error: “invalid_token”, errorDescription: "state does not match."}

Is this flow possible? what are we missing?

1 Like

Did you find any solution to this problem? @raul.martinez

Nope, we still have login only in app.oursite.com