Javascript – How to get a session object in the server side in next.js 14?
I'm using the version of next.js 14 with its app routing feature and NextAuth. I'm looking to secure the API but I'm getting a null object when using the getServerSession( authOptions ) method when requesting a protected endpoint with Postman…