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 | |
---|---|---|---|---|
ReactAuth0 - Get AccessToken in a none ReactHook code | 4 | 6736 | May 27, 2024 | |
How to get token from outside React components? | 5 | 5767 | August 14, 2024 | |
Getting access tokens inside another hook/reusable code for getting access tokens | 4 | 4619 | October 1, 2022 | |
useAuth0() hook with React + Redux App | 2 | 6437 | October 27, 2020 | |
Why access token cannot be provided with user from the useAuth0 hook | 1 | 477 | January 17, 2024 |