web-examples icon indicating copy to clipboard operation
web-examples copied to clipboard

Retrieving Session info in NextJS 14 App Router Server Side: getServerSession()

Open keennay opened this issue 1 year ago • 0 comments

I'm implementing Reown + SIWE in a NextJS 14 App Router website from the below guide: https://docs.reown.com/appkit/next/core/siwe

Also following the example found here: https://github.com/reown-com/web-examples/tree/main/dapps/appkit-siwe/next

How on earth to I get the session info on the server side? All examples in the docs are for the client-side (React) frontend using useAppKit.

I need to use the below:

import { getServerSession } from "next-auth/next"

Thanks

keennay avatar Nov 08 '24 20:11 keennay