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

**URL:** <https://community.auth0.com/t/use-user-and-context-information-after-return-callback-null-user-context/52075>\
**Category:** Get Help\
**Tags:** callback-url, user, rules, callback, redirect-rules\
**Created:** [October 23, 2020, 5:00pm UTC](https://community.auth0.com/t/use-user-and-context-information-after-return-callback-null-user-context/52075 "2020-10-23T17:00:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tareaslenguaje2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tareaslenguaje2/32/25114_2.png) [@tareaslenguaje2](https://community.auth0.com/u/tareaslenguaje2)\
**Post date:** [October 23, 2020, 5:00pm UTC](https://community.auth0.com/t/use-user-and-context-information-after-return-callback-null-user-context/52075/1 "2020-10-23T17:00:21Z")

</div>

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

 ![image](https://global.discourse-cdn.com/auth0/original/3X/e/0/e036b905cb5656b7e457c1fcaa9de657ff1ae0d9.png)

![image](https://global.discourse-cdn.com/auth0/original/3X/9/7/97a1fda2388e1944c4aa4fd2173a273127f255bc.png)

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 😃

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [October 25, 2020, 10:27am UTC](https://community.auth0.com/t/use-user-and-context-information-after-return-callback-null-user-context/52075/2 "2020-10-25T10:27:37Z")

</div>

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 ([Redirect Users from Within Rules](https://auth0.com/docs/rules/redirect-users#force-password-change-example)).
