Skip to content

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

@keennay

Description

@keennay

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions