Technically this is not an issue, since your code works when unaltered, but this is more of a procedural question. I'd like to point your project to a user database that already exists, but the id field is named userID. So as a test, I renamed the id field in your test database, then in /util/auth.js I
but when I run the code and attempt to log in, I get the error
error: failed to serialize user into session
and when I pause the script (using node-inspector) in passport.serializeUser I notice that user.id does not exist (though it does with your original project).
I'm hoping I'm just missing something simple. How can I change the name of id with this project? Thanks!
Technically this is not an issue, since your code works when unaltered, but this is more of a procedural question. I'd like to point your project to a user database that already exists, but the id field is named userID. So as a test, I renamed the id field in your test database, then in /util/auth.js I
but when I run the code and attempt to log in, I get the error
and when I pause the script (using node-inspector) in passport.serializeUser I notice that user.id does not exist (though it does with your original project).
I'm hoping I'm just missing something simple. How can I change the name of id with this project? Thanks!