Skip to content

feat: support Next.js 13.0.1#5710

Merged
balazsorban44 merged 4 commits into
nextauthjs:mainfrom
HaNdTriX:next-13.0.1
Nov 4, 2022
Merged

feat: support Next.js 13.0.1#5710
balazsorban44 merged 4 commits into
nextauthjs:mainfrom
HaNdTriX:next-13.0.1

Conversation

@HaNdTriX

@HaNdTriX HaNdTriX commented Nov 2, 2022

Copy link
Copy Markdown
Contributor

☕️ Reasoning

  1. Next.js 13.0.1 introduces a new RequestCookie API. This breaks getToken. 04ea576
  2. Next.js 13.0.1 doesn't invoke middleware with an instance of NextRequest. c4087fc

🧢 Checklist

  • Documentation
  • Tests
  • Ready to be merged

🎫 Affected issues

Fixes: #5649, Fixes #5701, Fixes #5704, Fixes #5705

@vercel

vercel Bot commented Nov 2, 2022

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
next-auth ⬜️ Ignored (Inspect) Nov 2, 2022 at 10:33AM (UTC)

@github-actions github-actions Bot added the core Refers to `@auth/core` label Nov 2, 2022
@HaNdTriX HaNdTriX changed the title RFC: Support Next 13.0.1 feat: support Next.js 13.0.1 Nov 2, 2022
Comment thread apps/dev/package.json

@vedantmgoyal9 vedantmgoyal9 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eagerly waiting for this! Please merge and release soon 🙂

@MalteBoehm MalteBoehm left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lg2m 🚀

@balazsorban44 balazsorban44 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just made these changes locally myself, but happy to merge your PR instead! Thanks for the great work!

@balazsorban44 balazsorban44 merged this pull request into nextauthjs:main Nov 4, 2022
balazsorban44 pushed a commit that referenced this pull request Nov 4, 2022
* Migrate dev app to Next.js Version 13

* Update core types

* Fix middleware

#5649

* Use new ResponseCookie API

vercel/next.js#41526
@HaNdTriX HaNdTriX deleted the next-13.0.1 branch November 4, 2022 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Refers to `@auth/core`

Projects

None yet

5 participants