Hi there @veshall , welcome back
In general, we can redirect users after the login only to the Allowed Callback URLs listed in the application’s settings:
For scenarios where dynamic callbacks are desired, we suggest providing one callback URL for all those /organization/[orgId] URLs and leveraging the state parameter during authentication.
Here, the concept is explained generically - How do I set up a dynamic Allowed Callback URL?
I also found the topic where the getLoginState
is used to redirect the user to the origin/referer URL but you may try to go analogically with your use case - Redirecting back to starting page dynamically with nextjs-auth0
Here is the library reference: LoginOptions | @auth0/nextjs-auth0
Feel free to try this out, and please let us know if you have any follow-up questions along the way.