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