Hi I am having trouble accessing the user session when I click on the placeOrder button for the ecommerce website using next.js and nextAuth.js. For some reason I got it to return the actual session once but now it won\’t return anymore. I have already checked the documents and have tried both getSession() and getServerSession() like it suggested for serverside API and neither of them are working and keep returning null. I can\’t figure out why it\’s not working when I have everything set up correctly. If you could please help me out I would be very grateful.
Matthew Cortinas Asked question April 14, 2023