There's no way to require it. The best you can do is tell the user to do it.
Also, it use require.main.require instead
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.
Thanks @jarey , I was using shiny new fetch api but wasn't including credentials. silly me.