In what conditions next-auth may create multiple version of cookies for different domains? #10313
Unanswered
krzysztof-dk
asked this question in
Help
Replies: 3 comments 1 reply
-
It seems that second set of cookies is created due to having |
Beta Was this translation helpful? Give feedback.
1 reply
-
If you get here, the problem is that too much user information is being saved in the session, and it seems that all of this is saved in the access token, so check that the things you save are not too large. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys. I'm working on a project using next-auth and Keycloak and facing a behaviour of having multiple cookies set for different domains as a result of oAuth login handled by next-auth.
The issue I'm facing because of that is that due to having this much cookies I'm hitting the cookie size limit of server providing me an images used in HTML tag, namely I'm getting
431 Request Header Fields Too Large
error when browser tries to download the image through the HTML.The question I have are:
The screenshot shows situation when I'm running project from localhost but this is the same after deployment.
Beta Was this translation helpful? Give feedback.
All reactions