# Custom variable input in getTokenSilently

**URL:** <https://community.auth0.com/t/custom-variable-input-in-gettokensilently/98504>\
**Category:** JWT.io\
**Created:** [January 19, 2023, 5:13pm UTC](https://community.auth0.com/t/custom-variable-input-in-gettokensilently/98504 "2023-01-19T17:13:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnWick](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/johnwick/32/42530_2.png) [@JohnWick](https://community.auth0.com/u/JohnWick)\
**Post date:** [January 19, 2023, 5:13pm UTC](https://community.auth0.com/t/custom-variable-input-in-gettokensilently/98504/1 "2023-01-19T17:13:51Z")

</div>

Hey !

Im trying to add custom variables to a JWT using the react auth0 SDK, but I want the front end req to specify the values.

I am making the req from the front end like:

```auto
const accessToken = await getAccessTokenSilently({
      detailedResponse: true,

      txn_data: '', // custom
      toContractId: '', // custom
      txn_data: '' // custom
      
    })

```

But the event.request.body has no data as well as the event.request.query does not contain these variables in the actions event.

Help, PLZ

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [January 19, 2023, 6:14pm UTC](https://community.auth0.com/t/custom-variable-input-in-gettokensilently/98504/3 "2023-01-19T18:14:43Z")

</div>

A post was merged into an existing topic: [Custom client side custom JWT inputs](https://community.auth0.com/t/custom-client-side-custom-jwt-inputs/97936/3)

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [January 19, 2023, 6:14pm UTC](https://community.auth0.com/t/custom-variable-input-in-gettokensilently/98504/4 "2023-01-19T18:14:20Z")

</div>

A post was merged into an existing topic: [Custom client side custom JWT inputs](https://community.auth0.com/t/custom-client-side-custom-jwt-inputs/97936)

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [January 19, 2023, 6:15pm UTC](https://community.auth0.com/t/custom-variable-input-in-gettokensilently/98504/5 "2023-01-19T18:15:12Z")

</div>



---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [January 19, 2023, 6:18pm UTC](https://community.auth0.com/t/custom-variable-input-in-gettokensilently/98504/8 "2023-01-19T18:18:12Z")

</div>

Hi @JohnWick,

Thanks for reaching out to the Auth0 Community!

I see that you have made a post asking a similar question. I have merged them together for consistency.

Thanks,  
Rueben
