Data Fetching in Server Side Props

Hey guys! I am new to Auth0. I am now facing some issue here which is I want to get session of a user using getSession. I am not sure how to use getSession with Next.js + Auth0 to get User Session. Can anyone help? Thanks.

Information related to my post:

  • Which SDK this is regarding: nextjs-auth0
  • SDK Version: e.g. 1.5.0
  • Platform Version: e.g. Node 14.17.5
  • Code Snippets/Error Messages/Supporting Details/Screenshots: