Replies: 2 comments 2 replies
-
I'm encountering a similar problem and haven't been able to find a solution yet. The main issue is that during the session loading, only the default user information (such as NAME, EMAIL, IMAGE) is loaded. Any additional custom properties that are added do not seem to be recognised immediately. The only workaround I've noticed is when I switch tabs or shift the focus from the browser to a different application and then return. If you check the network tab, it becomes evident that the session information is actually loaded only when you switch between tabs or applications. |
Beta Was this translation helpful? Give feedback.
-
I have the same problem, I think it is related to #596 - as of v4.22.1 there is an Session update() API see the updated docs, or you can try this workaround which worked for me: #596 (comment) |
Beta Was this translation helpful? Give feedback.
-
Hi! I apologize in advance for the wording of this text. Please note that everything went through Google Translator.
I am having a problem with my application in Next14. Let's say I'm in an administrative dashboard which allows access only to logged in users and, depending on the information of each user, displays different elements. Everything works fine but the problem is when I refresh, or exit the page and enter again. The session loads halfway but the elements or all the information is not displayed until I change tabs and go back, or simply focus somewhere else. I checked in network and indeed, session is not called until I change the focus. Do you have any idea what it could be? I'm 90% sure it's a NextAuth problem but I tried too much and can't fix it.
I clarify that this only occurs in production or in build. If I try the application in npm run dev this problem is not replicated.
Beta Was this translation helpful? Give feedback.
All reactions