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?
baris last edited by
You can't get the current user data without their uid. If you have access to the express
reqobject you can grab it with
req.uidor if it is a socket call then its
socket.uid. The value of uid is 0 if the user is not logged in.