Middleware ignores Preconditions and Throw Errors

This is a simple pre-middleware function to prevent users from using more than one valid auth token. The precondition should throw an error when the condition fails, but when it happens, the middleware function stops but the endpoints function stacks continue executing normally, though they shouldn't.

Does anyone else have the same issue?

Michael Udinski

3
7 replies