Express Custom Session Verification
# support-questions-legacy
a
How can i create a custom middleware that uses the same logic in
verfySession
but i want to extend it?
I want to extend the error catching with a custom logic if its a
dev
environment it should call
next()
without
dev
env just throw an error.
current try in the if statement should run when there is no session but it does not run into the if
r
2 Views