Redirect From One Site to Another After Login

Hi all,

I’m using the @auth0/auth0-react SDK, version 1.8.

I’m trying to figure out how to get redirect working in a certain way and I’m not sure what is possible and what isn’t. Have been all through the documentation and forums and didn’t make much headway.

What I’m trying to do is click the login button on our marketing site, which goes to universal login. I set the redirect URI to be our app. Desired behavior is that when it redirects to the app, it recognizes the user as being logged in and displays user data as if they had logged in on the app directly.

The redirect occurs as expected, but nothing much happens once the page loads. I do see the code and state parameters sitting there in the URL. What I assume is happening is that since the state value was generated on the marketing side, the app doesn’t know how to interpret it. Makes sense.

Is what I’m trying to do even possible or is there a piece that I’m missing?

Cheers,
Craig