How to configure Auth0 application to redirect to a specific URL after login?

Hi @greggs

Welcome to the Auth0 Community, it’s great to have you on board.

You could create a post login Action to do the redirect as per this document https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/redirect-with-actions#start-a-redirect

So for you it might look like this

exports.onExecutePostLogin = async (event, api) => {
  api.redirect.sendUserTo("http://localhost:3000/app");
};

Does this work for you?

Warm regards.

1 Like