I tried that, but I couldnt get it to work… maybe because its an async function to get the token but it looks like I need the token when the axios hook is initialized… I am out of ideas here! I think I cannot use this library!
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Getting access tokens inside another hook/reusable code for getting access tokens | 4 | 4576 | October 1, 2022 | |
Using Axios to call an external API secured by Auth0 using JWT | 4 | 4704 | November 17, 2022 | |
useAuth0() hook with React + Redux App | 2 | 6417 | October 27, 2020 | |
How to get token from outside React components? | 5 | 5677 | August 14, 2024 | |
ReactAuth0 - Get AccessToken in a none ReactHook code | 4 | 6692 | May 27, 2024 |