Local/OAuth authentication with Node.js