How to handle expired token while making external api call in nextjs?
Below is my signin function, whenthe signin is successfull i am setting cookie.
Cookies not getting handled by API
Maybe I’m approaching this the wrong way. I have built an API on expressjs with this auth middleware: