extract functions using passport to lib/auth.js.
extract the function assigns to post signin to routes/index.js.