The user starts his authentication process in the path /join-waiting-list
and when he finishes logging in he is redirected to the root (/
), I want that once the user finishes the login process he stays in the same path. How to handle this behavior correctly?
api/auth/[auth0]/route.ts
import { handleAuth } from “@auth0/nextjs-auth0”
export const GET = handleAuth()
Configuration in Auth0:
Allowed Callback URLs: http://localhost:3000/join-waiting-list is added.