I had this friction using Cookie session with Next.js and a separate backend. I think Next.js doesn't work well with a separate backend that uses cookie-session for auth.
Checked online, and the suggestions were: Use a third-party authentication provider like Auth0... smh