# getTokenSilently on reactjs, apollo, graphql

**URL:** <https://community.auth0.com/t/gettokensilently-on-reactjs-apollo-graphql/48851>\
**Category:** Get Help\
**Created:** [August 29, 2020, 9:54am UTC](https://community.auth0.com/t/gettokensilently-on-reactjs-apollo-graphql/48851 "2020-08-29T09:54:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pete2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pete2/32/19417_2.png) [@pete2](https://community.auth0.com/u/pete2)\
**Post date:** [August 29, 2020, 9:54am UTC](https://community.auth0.com/t/gettokensilently-on-reactjs-apollo-graphql/48851/1 "2020-08-29T09:54:16Z")

</div>

HI,

I have an issue using auth0, reactjs and apollo. I receive the jwt token and it is correct ( i verified it). However, how can i use this getTokenSilently and call in on the app.js?

auth0 works as it should 🙂 but i am not sure how to get this token now as i don’t want to use localStorage.  
Any help much appreciated, thanks

---

<div class="post-metadata">

**Author:** ![pinda.singh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pinda.singh/32/14660_2.png) [@pinda.singh](https://community.auth0.com/u/pinda.singh)\
**Post date:** [August 30, 2020, 1:54pm UTC](https://community.auth0.com/t/gettokensilently-on-reactjs-apollo-graphql/48851/2 "2020-08-30T13:54:18Z")

</div>

You can use the auth0Client and use the method getTokenSilently() which can be used from within your app. I’ve linked the quick start guide which covers usage of this method: [Auth0 React SDK Quickstarts: Call an API](https://auth0.com/docs/quickstart/spa/react/02-calling-an-api). Hope this helps.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 31, 2020, 9:11am UTC](https://community.auth0.com/t/gettokensilently-on-reactjs-apollo-graphql/48851/3 "2020-08-31T09:11:29Z")

</div>

Thanks a lot for sharing it with the rest of community!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [September 15, 2020, 9:11am UTC](https://community.auth0.com/t/gettokensilently-on-reactjs-apollo-graphql/48851/4 "2020-09-15T09:11:32Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
