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 | |
---|---|---|---|---|
getAccessTokenSilently({ cacheMode: 'off '}) re-renders entire React app - should this be the case? | 2 | 735 | April 9, 2025 | |
Auth0 React SDK getAccessTokenSilently third party cookie issue | 2 | 191 | December 9, 2024 | |
How to get the refresh_token with getAcessTokenSilently method from the Auth0 React SDK | 2 | 194 | March 27, 2025 | |
getCredentials usage react native sdk | 2 | 51 | May 5, 2025 | |
Can't get token from local storage | 2 | 96 | May 9, 2025 |