Use user and context information after return callback(null, user, context)

Hi,
I have a rule and I want to redirect like the example

image

image

With this I want to use user information and context information on the page that I redirect.

This rule is used on a React project and Nodejs Express Project.

Thanks :smiley:

This redirect will be an HTTP-based redirect to another system so if you need to pass certain information from the rule into the target of the redirect you will need to do so taking in consideration the capabilities of the HTTP redirect itself.

One possibility is to create and sign a JWT token within the rule and append that token to the redirect URL; the application receiving the token could validate and use that information which could include a user identifier. Thereโ€™s an example of this approach in the sample rule mentioned at (https://auth0.com/docs/rules/redirect-users#force-password-change-example).