-
I have followed the documentation and I am able to log in successfully and a few other people in my organization are able to log in successfully as well on the live site but there are several people who have access to their Microsoft Outlook accounts who are not signing in even though they are returning a token in the jwt callback and a user in the signIn callback. [....nextauth].js
Here is how I am getting the session on the client side.
Both users get access tokens in the jwt but I see the session callback and the users who can't log in do not see the session callback. Any help would be appreciated. Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
@migdall I had the same issue as yours. Now rather than passing the entire user to session inside token, just pass the important needed info like Id, verified, etc. I hope this helps you |
Beta Was this translation helpful? Give feedback.
-
Update, cookie chunking is on the way! #3101 🎉 |
Beta Was this translation helpful? Give feedback.
@migdall I had the same issue as yours.
I have managed to fix the problem by simply reducing the size of data I was storing in my Jwt token before passing it to the Session. If some of the users have more data then they can run into this issue of not being able to sign in since Cookie size limit has reached.
Now rather than passing the entire user to session inside token, just pass the important needed info like Id, verified, etc.
I hope this helps you