Header not updating properly
I use Next.js version 19 with TS and an app router with Node on the server side. The whole Authentication process works properly, one thing does not work for me and that is the matter of when a user logged in or logged out it is not updated on the navbar in real time, only after I reinterpret the site
Nextjs 19 with Nodejs, header not updating properly
everyone ! I use NEXTJs version 19 with TS and an APP ROUTER with NODE on the server side, I doin Authentication, the whole Authentication process works properly, one thing does not work for me and that is the matter of when a user logged in or logged out it is not updated on the NAVBAR in real time, only after me Reinterpret the site
Thanks everyone for the help and attach the code