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 | |
---|---|---|---|---|
React SDK refresh access token | 3 | 5215 | February 17, 2021 | |
Getting user outside of auth0-react sdk | 0 | 155 | June 10, 2024 | |
How to get token from outside React components? | 4 | 5312 | August 14, 2024 | |
Getting access tokens inside another hook/reusable code for getting access tokens | 4 | 4250 | October 1, 2022 | |
ReactAuth0 - Get AccessToken in a none ReactHook code | 4 | 6511 | May 27, 2024 |