How to Properly Use Axios with Next.js API Routes for Authentication and Handling Cookies?
I’m currently working on a Next.js project where I need to handle authentication and API requests using Axios. I’m a bit confused about whether I’m doing it right, especially when it comes to setting up Axios and handling cookies. Here’s the setup I have so far: