Skip to content

Support Next.js 12 Middleware #3037

@ramiel

Description

@ramiel

Description 📓

After watching the recent Nextjs conf, I'm wondering if there's a way to move authentication api (here it's the /session endpoint) to run on the edge instead that on server. Looking at this very basic example

https://youtu.be/PWi-49ODKAs?t=3203

maybe there's a way to take advantage of this in NextAuth too, even if in an opt-in way.

How to reproduce ☕️

Nothing to reproduce

Contributing 🙌🏽

Yes, I am willing to help implement this feature in a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions