Convert access token to cookie or support access token based authentication

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:

  1. How to generate cookies using an access token on the client side to call web app?
  2. 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.

1 Like

Hello @ ar4891, how did you manage to resolve this issue?