getTokenSilently on reactjs, apollo, graphql

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 :slight_smile: but i am not sure how to get this token now as i don’t want to use localStorage.
Any help much appreciated, thanks

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. Hope this helps.

1 Like

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

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