Invitation implementation using next’s #82390
Unanswered
codesridhar
asked this question in
Help
Replies: 1 comment
-
There's this being done, useEffect? I think, maybe first start with a Route Handler, yes there'll be no UI telling the user what's happening, but let's start there. Your logic to check sessions and stuff should redirect people to the correct route. If you don't wanna do that, let's then explore what might be going on here... From what you describe the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I’m working on a Next.js app and trying to implement an invitation flow. When an invitation link is accessed (e.g., with ?invitation=xyz&organization=abc ), I want to redirect users to either the dashboard (if they’re logged in) or to the signup/login page with the invitation parameters preserved.
The issue I’m facing is that users are not being redirected to the signup page (/authorize) as expected when not logged in. Instead, the redirect either fails silently or redirects to login screen.
Has anyone implemented something similar in Next.js and can help me figure out what I might be missing? Could this be related to Next.js routing, Auth0 configuration, or browser behavior?
Thanks,
Sridhar
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions