Cached URL in Post-login redirect flow

During the development of post-login trigger the redirect URL was defined as http://localhost:...., after the development was done the property got changed to the actual URL of an application, even tough the redirect URL is cached, most probably on Auth0 side.

To sum up: user is still redirected to the localhost, if the structure of the route is changed (in the actions itself), fe.: from https://{domain}/some-route to https://{domain}/en/some-route the redirect works as intended.

That was tested on multiple devices, also on the ones that weren’t used during the development, so the URL cannot be cached on the client side

What steps should be taken to avoid that behaviour?

Hi @planger,

When using api.redirect.sendUserTo() in a Post-Login, the user is redirected to the specified URL, and Auth0 does not cache it.

If the user is still being redirected to localhost, I recommend checking your network activity to verify the requests and check them against the Dashboard Logs. I would also check that the redirect_uri of your /authorize request does not point to localhost either.

It might also be helpful to include some console log statements in the Action scripts and monitor the output in the Action Logs during a login flow.

Let me know how this goes for you.

Thanks,
Rueben