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!