loopback-context
loopback-context copied to clipboard
Current context for LoopBack applications, based on node-continuation-local-storage
ctx.get() is always returning undefined after setting up the object in a different remote method
# Description/Steps to reproduce 1. Create custom datasource based on loopback-rest-connector 2. Attach a model to this datasource 3. Invoke upsert REST API 4. Loopback context is null in afterRemote...
# Description/Steps to reproduce I didn't get context using const context = LoopBackContext.getCurrentContext({bind: true}); I always get context null in MyModel.js file. ``` module.exports = function(Player) { const LoopBackContext =...
### Bug My loopback context is lost if I call bcrypt compare function bcrypt.compare(currentPassword, user.password, function(err, isMatch) { --- --- --- }); - [x] Bug - [ ] Feature request...
@dongmai commented on [Wed Jul 20 2016](https://github.com/strongloop/loopback/issues/2519) Hi everyone , Sorry for duplication, but I'm facing it again on nearly the latest version of loopback. Here is my `pacakge.json` ```...
A [recent PR](https://github.com/strongloop/loopback.io/pull/335) brought to my attention that https://apidocs.strongloop.com/loopback/#loopback-context no longer exists which begs the question: Should we add API docs for this module to https://apidocs.strongloop.com/ ? **Tasks** - [...
If using session and token middleware, trying to access the explorer crashes the server with a "Error: No context available. ns.run() or ns.bind() must be called first." see also strongloop/loopback#2636...
@grandhisubrahmanyam35 commented on [Wed Nov 30 2016](https://github.com/strongloop/loopback/issues/2991) ### Bug or feature request - [x] Bug - [ ] Feature request ### Description of feature (or steps to reproduce if bug)...
@barocsi commented on [Fri Jan 29 2016](https://github.com/strongloop/loopback/issues/2004) I was trying to implement an access filter for my User method depending on the currently logged in user. However, when I try...