Next.js – Cannot read properties of undefined (reading 'user') – Reactjs
I use Next.js and Next-auth for my project. I'm building a Sidebar component where I want to show a list of items from a user. So I'm getting the session with useSession. When I log the session like so... export…