Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NextJS 15 support #113

Open
mez opened this issue Oct 25, 2024 · 2 comments
Open

NextJS 15 support #113

mez opened this issue Oct 25, 2024 · 2 comments

Comments

@mez
Copy link

mez commented Oct 25, 2024

Just tried to update to Next15, the Async Request APIs breaking changes did break convexAuth specifically cookie and token requesting area.

[Error: Route "/" used `headers().get('Host')`. `headers()` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis]
[Error: Route "/" used `cookies().get('__convexAuthJWT')`. `cookies()` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis]
[Error: Route "/" used `cookies().get('__convexAuthRefreshToken')`. `cookies()` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis]
[Error: Route "/" used `headers().get('Host')`. `headers()` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis]
[Error: Route "/" used `cookies().get('__convexAuthJWT')`. `cookies()` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis]

To reproduce, just update to Next 15 while using convexAuth.

@thomasballinger
Copy link
Contributor

sounds like https://nextjs.org/blog/next-15#async-request-apis-breaking-change

@AndrewDonelson
Copy link

wow :(
ETA on this? one of my project was giving me issues and i upgraded node, npm and next 14->15 and now none of my projects work. I really do not want to go back to the previous versions and ALL of my apps use convex + convex auth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants