Not able to login for Auth0 in the Render Preview PR build

Hi community :waving_hand:

I’m using Auth0 with a Next.js application, deployed on Render.

  • :white_check_mark: The login works fine on the main domain:
    https:/testproject-com-next .onrender.com
  • :cross_mark: But when I try to log in from a PR deployment, for example:
    https ://testproject-com-pr-80.onrender.com

— the login fails or redirects incorrectly, and I can’t complete authentication.

The PR deployment itself is working and reachable, but the login doesn’t succeed.
when i create my PR preview render will like this.
https ://tesproject-com-pr-80.onrender.com/

and when i login after that it redirect to the
https ://testproject-com-next.onrender.com/auth/callback?code=XRwy_x6bXazWl7jIkCAEcigXDX0KZOeRYtuvEmO9zBbsV&state=LsULUnGtb44-W28rozpgtVmH1cxJnI_dP0rxUsYFKyk

I don’t know whether there is issue with the auth0 or render?
Can you one guide me on this?

Typically when using any single sign in service you have to configure the redirect URL back to the service at the provider - so you may need to do that here as part of the deployment, perhaps via the preDeployhook to register your service with auth0 and set the redirect URL to the URL of the preview service.

Thanks for your response.
I have configured all the redirect and callback url in the auth0. But still the result is same.
I’m not able to login with deployed preview build.