I am trying to create a plugin which has post route in it, I want to get uid of requesting user in the handler but req.uid is always zero and req.user is always undefined. Any help appreciated.
@inhuman hello. As you said the user uid should be available in req.uid.
How get current user data in nodebb https://community.nodebb.org/post/45769
If you're sure that user is logged in, it seems like a bug. You can report it, if proceed in the github repo.
Thanks @jarey , I was using shiny new fetch api but wasn't including credentials. silly me.