Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Well, that's why I was asking for the general case. I couldn't find where the event was being emitted. It was somewhere in the passport code that called my code that implemented an authentication strategy, and it was calling with the email rather than the id.

And I was trying to figure out where the code was coming from in passport. The only tool for that was "grep emit". That's ridiculous.

The problem went a level deeper, but that's irrelevant to the task at hand -- I was overriding the prototype (as per the passport example) and yet my code wasn't being called, and there was some order of execution issue going on with how the initialization was interacting with express, which is when I decided to scrap the code and rethink the implementation.

And for multiple reasons, I'm rethinking that implementation in Scala instead. :)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: