-1

I am not able to get session data to call API on page in next 12 > getsession(")was working in next 13 > ?? tried these two methods and getting initial data getsession() usesession()

Jonas
  • 121,568
  • 97
  • 310
  • 388

1 Answers1

0

in next js 13 version a new method is ad getserversession() we can now use this method how t house call getserversession(authO) here authO is a function which we have create in next auth and exported