How can I access a cookie (refreshToken) on the server side in Next.js?
I’m trying to refresh the access token of a user when it expires by making a request to the backend Express server. To do this, I need to send a request to /auth/updateAccessToken and include the refreshToken cookie, which has the path /auth/updateAccessToken and is httpOnly.