Replies: 1 comment
-
NextAuth.js v4 introduced cookie chunking, which should avoid any size-limit issues. It means if a cookie is going to be bigger than the browser limit (generally 4kb), NextAuth.js will chunk the cookie and save it in multiple ones. It will then stitch it back together when reading it on the backend. You shouldn't have to do anything for this to work. Make sure you are on |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If I add one extra field value to the token object during the JWT callback, everything works fine (adding id_token). If I try to add another long-winded string field value to the token object, things go array. Is there some logic that I'm not aware of that is causing authentication to become unstable?
Beta Was this translation helpful? Give feedback.
All reactions