How do i redirect users to a page in my app after login using universal login with (next-js)

Hi @adhamdoody7813,

Thank you for your response and clarification!

Using Auth0’s Next.js SDK, there are a couple of ways:

  1. In your config.ts file, specify the baseURL

    (Reference: BaseConfig | @auth0/nextjs-auth0)
  2. In your Login Handler, specify the returnTo property in the request.

    (Reference: LoginOptions | @auth0/nextjs-auth0)

Please let me know if you have any additional questions.

Thanks,
Rueben