Unable to get data from getServerSession(), But able to get from the useSession() in next-auth
I am using nextAuth as the authentication management and I am able to get data response via useSession() hook but when I tried to do this for getServerSession() I am getting null on the page. But in the network tab I am able to see the data of session.