NextAuth with app router, _app equivalent?
Unanswered
Giant Angora posted this in #help-forum
Original message was deleted.
5 Replies
Giant panda
no, but its good to have the layout as cliente component, so you can create something like this
and you call the componente from the layout
Asiatic Lion
its fine to do, you just can't use useContext hooks in server components, but any client component can still use the hook then
also for next-auth, you should upgrade to v5 which has full support for server components https://authjs.dev/guides/upgrade-to-v5