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
Req.cookies.getAll does not exist when using withMiddlewareAuthRequired on next@12 #899
Closed
7 tasks done
Comments
Nargonath
changed the title
Req.cookies.getAll does not exist when using withMiddlewareAuthRequired
Req.cookies.getAll does not exist when using withMiddlewareAuthRequired on next@12
Nov 8, 2022
Thanks for raising this @Nargonath Yep, I thought the fix for Next 13.0.1 would only drop support for 13.0.0 (not 12) - my bad. Will add something back for 12 in the next beta update - in the meantime you can use |
adamjmcgrath
added a commit
that referenced
this issue
Nov 8, 2022
Alright, thanks @adamjmcgrath for the fast answer. |
This was fixed in https://github.com/auth0/nextjs-auth0/releases/tag/v2.0.0-beta.3 |
Perfect, thank you @adamjmcgrath |
FPiety0521
pushed a commit
to FPiety0521/Auth0-Next.js-SDK
that referenced
this issue
Apr 28, 2023
redsky030428
added a commit
to redsky030428/autho_next.js
that referenced
this issue
May 13, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checklist
Description
I tried to use the beta
withMiddlewareAuthRequired
on anext@12.3.2
app but it throws regardingreq.cookies.getAll
does not exist. I noticed there is a somewhat similar issue (#892). I believereq.cookies.getAll
is only available innext@13
which is not mentioned in their documentation. It is not mentioned in the migration guide from v1 to v2 of this library that it breaks compatibility withnext@12
though.IMO the solution is to either bring back retro-compatibility or mention the breaking change in the migration documentation.
Reproduction
I created a repro using the sample app that you can find here: auth0-samples/auth0-nextjs-samples@main...Nargonath:auth0-nextjs-samples:cookies-getall-does-not-exist.
cookies-getall-does-not-exist
branch.npm ci
.npm run dev
.SDK version
2.0.0-beta.2
Next.js version
12.3.2
Node.js version
16.15.1
The text was updated successfully, but these errors were encountered: