-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
Argument of type 'ReadonlyRequestCookies' is not assignable to parameter of type 'CookieStore' #840
Comments
+1 |
@Barzi-Ahmed we are dealing with this same error. Do you by any chance have react-email installed as well? When we remove this package we no longer see the error but the second we install react-email the error comes back. |
@dsmikeyorke , no I don't have react-email, and still have the issue. But look, I find that iron-session is not very necessary, as next.js already has a lot of cookie features and its own cookies api, so why use this third party library? I would only make use of sealData and unsealdata functionality, but even for these two I can easily implement my own using web crypto api... |
@Barzi-Ahmed How would you encrypt and decrypt the user's data coming after login from an external api and set that in a cookie ? Could you show some code using web crypto api ? |
This is similar to #690. Installing |
I also have react-email installed but this resolved it
Although not really advisable to type it as |
I was able to get it to work without the
|
@dasveloper is that with or without |
Hello,
Next.js version: 15.0.0-canary.134
iron-session version: 8.0.3
cookies()
in the getIronSession parameter, has the following TS error:This is my code:
The text was updated successfully, but these errors were encountered: