Skip to content

The edge runtime does not support Node.js 'crypto' module #12

@Zeryther

Description

@Zeryther

Hi, unfortunately I am failing to get next-app-session running in Next.js edge middleware:

image

The issue seems to be coming from cookie-signature, which uses the crypto module.

In my code, I simply called the session as recommended in the docs:

const socialLoginStep: SocialLoginStep | undefined = await session().get('socialLoginStep');

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions