Loopback.io - How to get the current access token / user id in a remote method ?

Strongloop's Loopback framework is one of the best opinionated framework out there for API developement. I have been using it extensively in my projects. The only problem with Loopback is that it lacks examples of some very common tasks and one has to dig through the source code or search on Google to find out the way.

It took me four hours to figure out how to get the user id of the current user.

How to get access token / user id in a remote method ?
comments powered by Disqus