Custom variable input in getTokenSilently

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:

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

A post was merged into an existing topic: Custom client side custom JWT inputs

A post was merged into an existing topic: Custom client side custom JWT inputs

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