Using auth0, react and nextJS, my problem is how can I get the accessToken coming from the user login via auth0, being this token necessary to be able to use it and send it through the authentication header of all the requests I make to my local api of my own application. For this, I deduce that I need to manipulate the access token from the client side to be able to set it manually within each HTTP request to my local api, but I don’t know how to get to this point.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| In React, how do you find a user's access token? | 3 | 4863 | July 26, 2019 | |
| Help in making auth tokens to access API. | 3 | 3975 | March 2, 2018 | |
| How to get Auth0 token from outside React components in this specific case? | 2 | 3673 | February 3, 2022 | |
| Access token + nextjs + react native | 3 | 2145 | March 27, 2023 | |
| getAccessToken() returns encrypted token | 5 | 6022 | November 25, 2021 |