I am building a website by next js and I choose next-auth to handle login and protecting the routes, I managed to do the login in logic, but in order to be able to use post method to my api I need to send the token to my backend which I handled the related route (Backend done by NodeJS). The issue is that I can't reach the token and use it in the header in my requests.
Top comments (0)