Is there a clean way to get the currently logged in user's uid from a plugin? A search didn't seem to turn up a consensus.
@bbb in what context? A hook? A route handler? A client side script?
A hook. Specifically, action:post.setFields at the moment, but I'll need it for other hooks as well.
@pitaj Im also searching for how to get the current uid for use in a plugin hook method.
Depending on the plugin hook, the uid is included in the payload.