Accessing Session throughout app with auth.js
Unanswered
Toyger posted this in #help-forum
ToygerOP
Hi everyone,
I am currently accessing the session by callint
im brand new to next so sorry if this is a dumb question.
thanks 🙂
I am currently accessing the session by callint
const session = await auth() in all of the server components to get access to the session. is there a way for me to call this once and pass it through? then if it gets updated it updates all the place it references it?im brand new to next so sorry if this is a dumb question.
thanks 🙂