For Next App Router middleware, are we supposed to just use the unseal/seal data methods? #658
jordanpurinton
started this conversation in
General
Replies: 1 comment 2 replies
-
Hey @jordanpurinton, no it's not supposed to error. But it's true I only tested reading the session in a middleware, not writing the session. What are the errors you're getting? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I get errors when calling
save
anddestroy
methods directly in Next middleware. Are we supposed to just use the seal methods in there and modify the cookies using the request/response objects? If so, can that be better called out in the docs?Beta Was this translation helpful? Give feedback.
All reactions