How get current user data in nodebb


  • GNU/Linux

    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 with req.uid or if it is a socket call then its socket.uid. The value of uid is 0 if the user is not logged in.


Log in to reply
 

Suggested Topics

| |