Clerk Sign up Page redirect
Unanswered
starload7744 posted this in #help-forum
In the clerk authMiddleware(), i want to redirect the new users who have signed through google to be redirected to a '/onboarding' page by using the clerkclient.getUsersList() But after getting the list and matching with the current logged in user (session user) , it is not being redirected even after using - return NextResponse.redirect(new URL('/onboarding',req.url));
1 Reply
Yellowstripe scad
If you want every user to be redirected to the onboarding page you can change your NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL environment variable. Look at the link to these docs:
https://clerk.com/docs/account-portal/custom-redirects
https://clerk.com/docs/account-portal/custom-redirects