Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix token middleware crash #2650

Merged
merged 2 commits into from
Aug 17, 2016
Merged

Fix token middleware crash #2650

merged 2 commits into from
Aug 17, 2016

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented Aug 17, 2016

Fix token middleware to check if req.loopbackContext is active.

The context is not active for example when express-session calls setImmediate which breaks CLS.

This is a back-port of #2649
Related: strongloop/loopback-context#6

cc @azatoth

bajtos and others added 2 commits August 17, 2016 14:43
Fix token middleware to check if `req.loopbackContext` is active.
The context is not active for example when express-session calls
setImmediate which breaks CLS.
@bajtos bajtos self-assigned this Aug 17, 2016
@bajtos bajtos added the #review label Aug 17, 2016
@bajtos bajtos merged commit 3dfd86f into master Aug 17, 2016
@bajtos bajtos deleted the fix/token-in-context-3x branch August 17, 2016 13:05
@bajtos bajtos removed the #review label Aug 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants