I have React + nextjs + auth0 web app that uses session/cookie-based authentication to protect pages and APIs. I want to invoke one of the APIs programmatically from elsewhere and the only credential I have to make an API call is getting an access token.
I’m looking for one of the 2 potential solution:
- How to generate cookies using an access token on the client side to call web app?
- Or How to make nextjs+react+auth0 web app accept an access token as a credential?
Since I manage both sides of the code, I’m open to any solution.