Closed cgarciae closed 9 years ago
I had a bug (corrected in the code above) but now the behavior is that the request never terminates. What is happening is that it is throwing an app.ErrorResponse
but this doesn't seem to terminate the request, maybe its not being caught.
Ok, fixed it. The trick was to use return
instead of throw
.
Currently I am using an interceptor on all
/private/.*
and check against a session variable to authenticate, but now I wan't create a@Private()
annotation that checks theAuthorization
header and verifies on MongoDB that the user exits. This is what I've tried so farNotice that I am trying to use
async
. On one hand I am not getting an error, which give the approach some hope, on the other its not working. Is it possible to achieve what I want?