getAccessTokenSilently comes from the useAuth0 hook, which can be used only inside a React component, so how to use getAccessTokenSilently function in an apiutil.js file outside React component?
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Using @auth0/auth0-spa-js outside of a React Component | 5 | 9860 | August 3, 2019 | |
| Getting user outside of auth0-react sdk | 0 | 180 | June 10, 2024 | |
| ReactAuth0 - Get AccessToken in a none ReactHook code | 4 | 6772 | May 27, 2024 | |
| React SDK refresh access token | 3 | 5520 | February 17, 2021 | |
| Getting access tokens inside another hook/reusable code for getting access tokens | 4 | 4668 | October 1, 2022 |