@yariplus Thank you.
How get current user data in nodebb
-
I need to get the current user data without the uid valuein my library.js. Anyone can help me?
-
You can't get the current user data without their uid. If you have access to the express
req
object you can grab it withreq.uid
or if it is a socket call then itssocket.uid
. The value of uid is 0 if the user is not logged in.