Server session not keeping values
Unanswered
Yacare Caiman posted this in #help-forum
Yacare CaimanOP
I am using
const session = await getServerSession(req, res, authOptions) from API pages and setting values on the session session.foo = "bar". However, those values are not available from other API pages... console.log(session.foo) gives undefined. What do I need to do to actually update the server session?