Hello Auth0 Community,
I have set up a single Auth0 tenant that serves two distinct web applications. These applications are hosted on different domains, let’s say
I aim to implement a Universal Login flow using a third URL (let’s say
app.com). The desired flow is:
- User visits
- User is redirected to the Auth0 Universal Login Page.
- After authentication, based on certain criteria (either the incoming application or user’s
app_metadata), the user is directed to either
- The chosen application (
app2.com) completes the authentication flow, and the user can then interact with it as an authenticated user.
Currently, using Next.js 13 and Auth0, I’ve been able to achieve the redirection using an Auth0 Action (Step 4). This redirects users to
However, I’m having difficulty with the last part of the flow (Step 5). I tried using the “state” query parameter to conclude the authentication process, but I can’t discern what information I need to send/receive to complete the authentication and maintain the user’s authenticated state on
Could anyone provide insights or guidance on how to successfully finalize this authentication flow?
Thank you in advance!