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 | 9828 | August 3, 2019 | |
Getting user outside of auth0-react sdk | 0 | 176 | June 10, 2024 | |
ReactAuth0 - Get AccessToken in a none ReactHook code | 4 | 6736 | May 27, 2024 | |
React SDK refresh access token | 3 | 5468 | February 17, 2021 | |
Getting access tokens inside another hook/reusable code for getting access tokens | 4 | 4616 | October 1, 2022 |