chore(server.js): split passportjs logic