Next.js Discord

Discord Forum

Next Auth unstable_cache

Unanswered
Jumbo flying squid posted this in #help-forum
Open in Discord
Jumbo flying squidOP
Hi all, I'm using next auth and would like to cache the session response. Has anyone found a way to do this? We cant directly use unstable cache on next auth since getServerSession uses headers and cookies.

2 Replies

American black bear
Never cache anything related to auth, especially session ID