Next.js Discord

Discord Forum

Session is null there's a session - NextAUTH

Unanswered
.dric posted this in #help-forum
Open in Discord
Avatar
.dricOP
Hello,
I'm trying to useSession() in order to send the email of the current session user to an API route to fetch the username, but it doesn't happen, as session is supposedly null?? although there is a session going on and I have signed in.

Has anyone encountered this issue? And if so, how did you solve it, or better yet how do I tackle this issue and prevent it from happening in the future.

Thanks!
Image
Image
Image
Image

1 Reply

Avatar
.dricOP
Just checked the console (should've done that before), and I'm seeing this:
Image