How to redirect after signup with nextjs-auth0?

Please include the following information in your post:

  • Which SDK this is regarding: nextjs-auth0
  • SDK Version: v1.5.0 (Latest)
  • Platform Version: Node v15.12.0

I’m trying to figure out how to redirect to another page if certain scenario is matched. Basically, when someone signs up, they are authenticated but do not have a proper profile on my app. I want to be able to redirect them to a profile form (/profile) to fill out their profile. If they already have a profile, send them to the the main page.

I’ve attempted to use handleCallback along with afterCallback but that was not the way. Any help would be great appeciated.