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.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Using getTokenSilently() makes app crash. with error like auth0Client is undefined | 1 | 3706 | October 30, 2019 | |
React-Native JWT Issues | 3 | 3198 | December 22, 2021 | |
Getting JWT token to front end for auth0 nextjs sdk | 0 | 2331 | June 28, 2022 | |
React - Getting a token for an API call outside of a functional component | 2 | 944 | December 12, 2023 | |
Auth0 client is null in React Component on page refresh | 4 | 6204 | March 25, 2020 |