hoangvvo/next-session

Handle Next 13 Session components

SleeplessOne1917 opened this issue · 0 comments

The current API, which accepts a request and response object, doesn't work too well with the new experimental app directory in Next 13. There is a function that allows you to get the cookies in a server component. I made a pull request adding a function for getting the session from the built in next js cookies function: #375. It won't be able to track commits to the session unfortunately, then again it seems that currently cookies are only read only in next 13.