Custom logic authentication strategy for Passport and Node.js.